#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();
}
Chat with our AI personalities
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; }
{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
The cost optimal algorithm in parallel computing is the modular structured parallel algorithm that satisfy the insatiable demand of low power consumption, reduces speed and minimum silicon area.