You have already done it: "area".
for a rectangle: length x width = area 2
(always put the little 2 the end of the equation, or else it isn't counted as the area)
Ex. A= 4/7 with a mini two at the top
{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 that calculates the area of a triangle in QBASIC
start read pie area circum print area print circum stop
Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }
#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(); }
{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 a c program to compute the surface area and volume of a cube
not found on area of responsebility
a text area is the area where we write our text. and a workspace is the place where we can work anything.
a text area is the area where we write our text. and a workspace is the place where we can work anything.
{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 that calculates the area of a triangle in QBASIC
Mark the area write down the information
area = base * height / 2;
Please do not write outside of the box.
Area of any triangle: 0.5*base*perpendicular height
you area demeanor