Calculate the area of rectangle , read width and Length using float value.



main()
{
    float a,w,l;
    clrscr();

    printf(“\n Enter width of the rectangle”);
    scanf(“%f”,&w);

    printf(“\n Enter length of the rectange”);
    scanf(“%f”,&l);

    a=w*l;

    printf(“\n area of the rectangle %f”,a);
    
getch();
}
           

Output: