answersLogoWhite

0


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();

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

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

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.


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?


Write a menu driven program in java to find area of different shapes. 1. Circle 2. Triangle 3. Rectangle?

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


How do you write a qbasic program to find area and circumerence of a circle?

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


Write missing expression in the program below which would print the area of circle r int input Enter the circle radius?

Area of any circle = pi*radius squared


Write a program in pascal that calculates the area of a circle?

{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.


Write a program to calculate the area of a cylinder using a function?

give an example of calculation of mathematics


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?

Pi x R squared. = area of a circle.


How do you calculate the are of a circle?

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


Write a pascal program that compute an area of a triangle?

{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.


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