fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. float Width;
  6. float Long;
  7.  
  8. printf("\nInput value of Width : ");
  9. scanf("%f", &Width);
  10.  
  11. printf("Input value of Long : ");
  12. scanf("%f", &Long);
  13.  
  14. printf("Area of a Rectangle is %.2f \n\n",Width * Long);
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.02s 25900KB
stdin
Standard input is empty
stdout
#include <stdio.h>
  
int main()
{
    float Width;
    float Long;
   
    printf("\nInput value of Width : ");
    scanf("%f", &Width);
  
    printf("Input value of Long : ");
    scanf("%f", &Long);
       
    printf("Area of a Rectangle is %.2f \n\n",Width * Long);
  
    return 0;
}