Write a C program to calculate the area of the circle

  Practice Problems For Beginners-4

Problem Statement:-Write a C program to calculate the area of the circle

Code:- 

#include<stdio.h>
#include<conio.h>
void main()
{
 float area,r;
 printf("Enter radius of circle:-");
 scanf("%f",&r);
 area=3.14*r*r;
 printf("Area of circle:- %f",area);
 getch();
}


Output:-




Post a Comment

0 Comments