answersLogoWhite

0

#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

12y ago

What else can I help you with?

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


How do you write a program to calculate the area of a circle in Q basic?

To calculate the area of a circle in QBasic, you can use the formula Area = π * r², where r is the radius. First, prompt the user to enter the radius, then use the SQR function to compute the square of the radius. Finally, multiply the squared radius by the constant value of π (you can use 3.14159) and display the result. Here's a simple code snippet: INPUT &quot;Enter the radius: &quot;, r area = 3.14159 * (r ^ 2) PRINT &quot;The area of the circle is &quot;; area


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.


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.