answersLogoWhite

0

#include

#include

#include

using std::cout;

using std::cin;

using std::endl;

using std::setw();

int main()

{

const double PI = 3.14153;

double radius = 0.0;

cout << "Enter radius of circle: ";

cin >> radius;

unsigned short precision = 5;

cout << endl <<"Enter precision you want have (not more than 6 digits): ";;

cin >> precision;

cout << setw(precision) <

system("PAUSE");

return 0;

}

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
ReneRene
Change my mind. I dare you.
Chat with Rene
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
More answers

#include<stdio.h>

main()

{

float r,area;

printf("Enter radius\n");

scanf("%f",&r);

area=3.14*r*r;

printf("area=%f",area);

}

User Avatar

Wiki User

13y ago
User Avatar

Dude, we're not going to do your programming homework. If you really just want to know, I'm sure there are any number of sample programs on the internet.

User Avatar

Wiki User

11y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Write a programe for calculating the area of circle in C programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp