Computer Science, asked by kanchanbenmistry1985, 8 months ago

to find the area of rectangle in c program.​

Answers

Answered by subbpavar
2

Answer:

#include<stdio.h>

#include<conio.h>

void main()

{

clrscr();

float l,b,area;

printf("\n Enter the length and breadth of the rectangle");

scanf("%f  %f", &l , &b);

area=l*b;

print("\n Area of the rectangle is : \t",area);

getch();

}

Explanation:

As we are instructed to include the header files we did that initially to avoid errors.

Declare the variable in float as the input may consist of decimal values.

Write the formula for area of the rectangle and print.

Answered by virajnayak
0

Answer: area of a rectangle is leangth x breadth

Explanation:

Similar questions