answersLogoWhite

0


Best Answer

#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

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

#include<stdio.h>

main()

{

float r,area;

printf("Enter radius\n");

scanf("%f",&r);

area=3.14*r*r;

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

}

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

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.

This answer is:
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
Related questions

How do you print a triangle of stars?

write a c++ programe to print a triangle without (for)


Write a c program to find the area and perimeter of circle?

Learn c programming and geometry. It will be easy when you know both.


How is event driven programming different from other programming?

write a note on event driven programming


How programming language is useful in system programming?

Without programming languages you couldn't write (system) programs.


Are there cancer viruses in vaccines SV40 virus?

Do the global elite have a covert depopulation programe ? as they are obsessed as you can see in the media, dont write you personal opinion on how you wouldnt do this just facts and dates.


What can c programming do?

by using this we can write a coding for operating systems


How do you write 5 in Arabic?

circle


How do you write absolute in C programming?

Assuming Absolute Value.abs(num)


What you 'll do using programming language?

Write computer-programs, I suppose.


What is the math function that draws a circle?

"a compass "But how do I write this mathematicaly?e.g.a parabula is f(x)=x2what is the way to write a circle function??


Write a java code to draw a circle inside in an ellipse?

write a program draw circle and ellipse by using oval methods in java


Who were the two authors of the first computer language written for computers?

This is not a "Dude 1 did it or Dude 2 did it"-Question. One of the first things related to programming was the guideline to calculating the bernoulli numbers by Ada Lovelace in 1842/43. The first real universal programming language would be the Lambda Calculus by Alonzo Church and Stephen Cole Kleene in the 1930s. Theoretically it can be used to write programs as complex and powerful as with a modern language.