interface Shape {
public double getArea();
}
Write a c program to compute the surface area and volume of a cube
{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.
calculating surface area
Write a program that calculates the area of a triangle in QBASIC
base times height just like a rectangle easy right
{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.
Formula for calculating the area of sphere is : 4 * pi * r * r
Rewrite the above program so that the program accepts any value for the radius then recalculate the area of the circle.
Any of them. Calculating the area of a polygon is a relatively simple mathematical task.
give an example of calculation of mathematics
area of dish end
area = radius * radius * Math.pi;