Find Area of Rectangle

0
18

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]

Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz