Write a C program for Area of Circle
Program:-
#include <stdio.h>
#include <conio.h>
void main()
{
float r, A;
clrscr();
printf("Enter the value of r");
scanf("%f",&r);
A=(3.14*r*r)/2;
printf("%f",A);
getch();
}
Output:-
input:-
Enter the value of r
r=10
Enter the value of r
r=10
output:-
314
314
0 comments:
Post a Comment