My Code:
#include <stdio.h>
int main()
{
int l, b, a;
printf("Enter the length of the rectangle: ");
scanf("%f", &l);
printf("Enter the breadth of the rectangle: ");
scanf("%f", &b);
printf("Area of rectangle is %f", l * b);
return 0;
}
When I give any input it doesn't show me its product, but 0.000000
instead:
As I gave input 2 and 3, it should print Area of rectangle is 6