Best Answer

#include<stdio.h>

void main()

{

int r=10;

float pi=3.14,c;

c=pi*r*r;

printf("Area of the circle=%f",c);

getch();

}

Q: Write a program to calculate the area of a circle?

Write your answer...

Submit

Still have questions?

Continue Learning about Math & Arithmetic

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

In which computer language?

Area of any circle = pi*radius squared

give an example of calculation of mathematics

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

Related questions

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

In which computer language?

Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }

Write a program that calculates the area of a triangle in QBASIC

Area of any circle = pi*radius squared

{Area s the area of cube} {Length is the length of one side of the cube} program AreaofCube; var Area,Length:real; begin write('Enter the length of cube: '); readln(Length); Area:=6*(Length*Length); writeln('The area of cube is ', Area, ' cm^2.'); end.

give an example of calculation of mathematics

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

Pi x R squared. = area of a circle.

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

{A program to compute the area of a triangle} {by Ogboin W. Meshach} Var; b,h:real; BEGIN Writeln('Triangle'); Write('Base: '); Readln(base); Write('Height: '); Readln(height); area:=0.5*base*height; Writeln('Area: ', area :0:2); End.

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