C program that accepts radius of a circle and prints its area

Program

#include<stdio.h>
#include<conio.h>

void main()
{
float radius,area;
clrscr(); //to clear the screen
printf(“Enter radius of the circle:”);
scanf(“%f”,&radius);
area=3.14*(radius*radius);
printf(“Area=%f”,area);
getch(); //to stop the screen
}

Output

C program that accepts radius of a circle and prints its area output

Leave a Comment

error: Alert: Content is protected!!