Class 9th CBSE

Program to enter length and breadth of a rectangle and find its perimeter.


Write a C program to enter length and breadth of a rectangle and find its perimeter.

Write a C program to enter length and breadth of a rectangle and find its perimeter.

Solution  :- 

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int area,length,breadth;
printf(“Enter the Length of a Rectangle:-“);
scanf(“%d”,&length);
printf(“Enter the Breadth of a Rectangle :-“);
scanf(“%d”,&breadth);
area = length*breadth;
printf(“The area of a Rectnagle is :-%d”,area);
getch();
}

Solution  :- 

 

Output :- 

 

Fun & Easy to follow
Works on all devices
Your own Pace
Super Affordable

Popular Videos

Play Video

UX for Teams

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer

Play Video

SEO & Instagram

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer