Write a program to calculate the area of rectangle in c language
Write a program to calculate the area of rectangle in c language
Program:-
#include<stdio.h>
#include<conio.h>
main()
{
int length,breadth;
clrscr();
printf("enter the length of triangle");
scanf("%i",&length);
printf("enter the breadth of rectangle");
scanf("%i",&breadth);
printf("area of rectangle is %i",length*breadth);
getch();
}
No comments
Post a Comment