fork download
  1. #include <stdio.h>
  2. int main() {
  3. float length,breadth,area;
  4. printf("Enter length and breadth of the room:");
  5. scanf("%f%f",&length,&breadth);
  6. area=length*breadth;
  7. printf("Area of the room=%2f sq.units\n",area);
  8. return 0;
  9. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Enter length and breadth of the room:Area of the room=-0.000001 sq.units