C Lang: Program in C to calculate Area of Circle when Radius is input from user.


#include<stdio.h>
#include<conio.h>
void main()
{
int R;
float Pi=3.14, Area;
printf("Enter Radius =");
scanf("%d",&R);
Area=Pi*R*R;
printf("Area is %d",Area);
getch();
}


Comments

Popular Posts