Saturday, 30 August 2014

Write a program to find the area of a rectangle.

SOURCE CODE

//WAP to find the area of the rectangle.

#include<stdio.h>
#include<conio.h>
void main()
{
    int l, b, area ;
    printf("AREA OF RECTANGLE\n\n") ;
   printf("Enter the length : ") ;
   scanf("%d", &l) ;
   printf("Enter the breadth : ") ;
   scanf("%d", &b) ;
   area=l*b ;
   printf("\n\nThe area of the rectangle is : %d", area) ;
   getch() ;
}


SCREENSHOT


No comments:

Post a Comment