Class 9th CBSE

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

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

Solution  :- 

#include<stdio.h>

#include<conio.h>

void main()

{

clrscr();

int length,breadth,perimeter;

printf(“Enter the length of a Rectangle :- “);

scanf(“%d”,&length);

printf(“Enter the Breadth of a Rectangle :-“);

scanf(“%d”,&breadth);

perimeter = 2 * (length+breadth);

printf(“The Perimeter of a Rectangle is :- %d”,perimeter);

getch();

}

Solution  :- 

 

Output :- 

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