Find Area of Rectangle

0
2093

Hint: area of rectangle=side1 * side2

[message_box title=”Program ” color=”red”]

/*========================================================================================================= */

/* Write a program to find area of rectangle */

/* Written by Utpal Chaudhary */

/*Studen of L.D COLEGE OF ENGINEERING,Ahmedabad,Gujarat */

/*========================================================================================================= */

#include <stdio.h>
#include <conio.h>

void main()
{
int x,y,area;

clrscr();

printf(“Enter one side:”);
scanf(“%d”,&x);

printf(“Enter second side:”);
scanf(“%d”,&y);

area=x*y;
printf(“Area of Rectangle:%d”,area);
getch();

}

[/message_box]

[message_box title=”Output” color=”red”]
Enter one side:10

Enter second side:8

Area of Rectangle:80
[/message_box]

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments