Calculate the Area of Rectangle with C language
#include <stdio.h>
#include <conio.h>
int main()
{
int l, b, area;
printf("\nEnter l of rectangle : ");
scanf("%d", &l);
printf("\nEnter b of rectangle : ");
scanf("%d", &b);
area = l * b;
printf("\nArea of rectangle : %d", area);
return (0);
}
Output:-
Enter l of rectangle : 5
Enter b of rectangle : 10
Area of rectangle : 50
0 Comments