Pages

Write a program in C language to find area of rectangle

Saturday 18 May 2013

#include<stdio.h>
#include <conio.h>
  int main()
{

    float length, width;
    float area;

    printf("Enter size of each sides of the rectangle: ");
    scanf("%f %f",&length, &width);
 
    area = length * width;  //calculation to find area of rectangle
    printf("Area of rectangle is: %.3f",area);
 
    getch();
}
 

Search Box

Most Reading

Contact Form

Name

Email *

Message *