Saturday 5 October 2013

Calculate Area of a Rectangle using C

#include<stdio.h>
#include<conio.h>
main()
{
int length,breadth,area;
printf("\nEnter the Length of Rectangle : ");
scanf("%d",&length);
printf("\nEnter the Breadth of Rectangle : ");
scanf("%d",&breadth);
area = length * breadth;
printf("\nArea of Rectangle : %d\n",area);
}

No comments:

Post a Comment