C Program to Find Area of Rectangle

C Program to Find Area of Rectangle

Write C Program to Find the Area of the Rectangle

// Write C Program to Find Area of Rectangle

#include <stdio.h>

int main()
{
    float length, breadth , area;

	printf("Enter the length :--> ");
	scanf("%f", &length);

    printf("Enter the breadth :--> ");
	scanf("%f", &breadth);

	//Formula to find the area of Rectangle
    area = length * breadth;

    printf("Area of Rectangle is :--> %0.2f\n", area);

    return 0;
}

Output:

Enter the length :--> 30
Enter the breadth :--> 20

Area of Rectangle is :--> 600.00