Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Area of a Rectangle in C

This program to find the area of rectangle
Formula:
Area of a rectangle is length * width
In this program we need to get the length and width from the user and we shall display after getting the inputs
Example:
Length=5
Width=5

Area of Rectangle is 25
#include<stdio.h>
#include<conio.h>
void main()
{
int len,br;
float area=0.0;
clrscr();
printf("\nEnter the Length & Breadth of Rectangle");
scanf("%d%d",&len,&br);
area=(float)len*br;
printf("\nThe area of Rectangle=%f",area);

}

Input:
Length:2
Breath:3
Output:
The area of Rectangle=6.000000