area of rectangle

#include<stdio.h>
int main() {
    float l,b,a;
    scanf("%f%f",&l,&b);
    a=l*b;
    printf("Area is %f\n ",a);
   
    return 0;
}
Input
3.5 4.2
Output
Area is 14.699999

No comments:

Post a Comment