C Program to find sum of two numbers



#include<stdio.h>
#include<conio.h>
void main(){
float radius,area,pi=3.14;
clrscr();
printf("Enter the radius:");
scanf("%f",&radius);
area=(pi*radius*radius);
printf("\nThe area of circle is:%f",area);
getch();
}

Explanation:

The above program will calculate the area of circle of given radius. We can understand the process of this program by following example:

radius=3,pi=3.14
area=pi*radius*radius=3.14*3*3=28.260000
The output of the above program is given below:

Output:

c program