answersLogoWhite

0


Best Answer

#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
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

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

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

Write an algorithm to calculate the area of a circle and display the result . Use the formulae A=¶r where ¶ is equal to 3.1416?

10001/999900


Write an algorithm to calculate the area of a circle?

1. Start 2. Input the the value of radius R 3. Let PI=3.14 4. Calculate area=PI*R*R 5. Print area 6.End


Write an algorithm to calculate the area of a triangle?

Area of any triangle: 0.5*base*perpendicular height


The radius of a circle is equal to one unit Write the algorithm to compute the corresponding area of the circle and display the value of the radius and the area?

PoTang Ina Ni CLARK CORTEZ


How do you write an algorithm and draw a flow chart to find the area of a circle?

start read pie area circum print area print circum stop


Write a program to calculate the area of a circle The equation to determine the area of a circle is area equals 3.1416radiusradius Assume that the circle has a radius of 4 inches?

Rewrite the above program so that the program accepts any value for the radius then recalculate the area of the circle.


What is the algorithm for finding the area of a circle?

Find the radiusMultiply pi by the square of the radius.


How do you write a program to input radius of a circle and calculate the area or circumferences of the cirlce?

In which computer language?


Pi can be used to calculate the blank of a circle?

Pi can be used to calculate the area of a circle Pi can be used to calculate the circumference of a circle


How do you calculate area of a circle?

To calculate the area of a circle, you can use the formula A = πr^2, where A is the area and r is the radius of the circle. Simply square the radius, multiply it by π (approximately 3.14159), and you will have the area of the circle.


How do you calculate the are of a circle?

To calculate the area of a circle use this formula: pi x r2.


How calculate surface area of a circle?

the area of the circle is Pi X Radius squared