khoob study

Monday, November 7, 2022

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();

}


Read more: read more

No comments:

Post a Comment