Sunday, 14 December 2014

C PROGRAM AREA OF RECTANGLE

Write a program to find the Area of Rectangle:

#include<stdio.h>
#include<conio.h>
int main()
{
int area, a, b;
clrscr();
printf("Enter the two sides of the reactangle");
scanf("%d%d",&a,&b);
area=a*b;
printf("Area is %d",area)
getch();
return(0);
}

OUTPUT:
Enter the two sides of the reactangle 5 6

Area is 30

No comments:

Post a Comment