calculate the area of a circle
#include<stdio.h>
#include<conio.h>
main()
{
float r,z=0;
printf("enter the radious of circle");
scanf("%f",&r);
z=3.14*(r*r);
printf("the area of circle=%f",z);
getch();
}
#include<stdio.h>
#include<conio.h>
main()
{
float r,z=0;
printf("enter the radious of circle");
scanf("%f",&r);
z=3.14*(r*r);
printf("the area of circle=%f",z);
getch();
}
0 Comments