Area of circle


/*Area of circle*/

#include<stdio.h>

main()

{

float pi,r,area;

clrscr();

pi=3.14;

printf(“enter the r=”);

scanf(“%f”,&r);

area=pi*r*r;

printf(“area=%f”,area);

getch();

}

Output:

Related Posts

Comments are closed.