write a program to accept radius of a circle and print its area
Answers
Answered by
2
#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
}
#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
}
Similar questions
Computer Science,
7 months ago
English,
7 months ago
Math,
7 months ago
Chemistry,
1 year ago
Biology,
1 year ago