Home / EG Comp Lab / C Language / Find Area of Rectangle

Find Area of Rectangle

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]

About EngineersGallery

Check Also

Game-Theoretic Pricing for Video Streaming in Mobile Networks

ABSTRACT Mobile phones are among the most popular consumer devices, and the recent developments of …

Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz