Showing posts from April, 2022
Decision making statements in C C program calculate roots (both real and imaginary) of a quadratic equation. #include <stdio.h> #include <math.h> main() { float a, b, c, root1, root2, rp, ip; printf("Enter the coefficients: \n&qu…
Very basic C programs examples 1. C program to print "Hello world" or any text. #include<stdio.h> int main() { printf("Hello, World!"); return 0; } Watch Tutorial in YouTube 2. C program to add two numbers and display th…