Monday, 21 November 2011

Write a Program to calculate area of a Rectangle

#include<conio.h>
#include<stdio.h>
void main()
{
int length,breadth,area_of_rectangle;
clrscr();
printf("Enter the Length=");
scanf("%d",&length);
printf("Enter the Breadth=");
scanf("%d",&breadth);
area_of_rectangle=length*breadth;
printf("Area of rectnagle is=%d",area_of_rectangle);
getch();
}

 

No comments:

Post a Comment