answersLogoWhite

0

#include<stdio.h>

main()

{

int r;

float area;

clrscr();

printf("enter the value of r\n");

scanf("%d",&r);

area=3.142*r*r;

printf("area of circle=%f\n",area);

getch();

}

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
More answers

inline double area(const double radius) { return radius * radius * 3.14159;}

User Avatar

Wiki User

15y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Write a C algorithm to calculate the area of a circle?
Write your answer...
Submit
Still have questions?
magnify glass
imp