TASK:
Write a program to calculate the area of the circle, taking the radius as input from the user.
INPUT:
#include<stdio.h>
#include<conio.h>
void main(void)
{
clrscr();
float a,b,c,d;
printf(" Area of Circle Calculator");
printf("Insert the radius of the circle:");
scanf("%f", &a);
b=a;
c=3.14915;
d=a*b*c;
printf("The area of your circle is:%f", d);
getche();
}
OUTPUT:
No comments:
Post a Comment