Write a program to find area of circle.

Write a program to find area of circle.

 

#include<stdio.h>

#include<conio.h>

void main()

{

clrscr();

int area,r;

printf(“Enter radius:”);

scanf(“%d”,&r);

area=3.14*r*r;

printf(“Area of circle:”,area);

getch();

}

 

 

Output:

Enter radius:3

Area of circle:28.26


Comments