Loading...
Submission
# When Author Problem Language CPU Memory
21379 2024-09-14 20:42:22 MUCB235 Rectangle Area C 0 ms 1512 kb Wrong Answer - 1
Test Cases
# CPU Memory Points
1 0 ms 1512 kb 0 Wrong Answer
2 0 ms 0 kb 0 Skipped
3 0 ms 0 kb 0 Skipped
4 0 ms 0 kb 0 Skipped
5 0 ms 0 kb 0 Skipped
6 0 ms 0 kb 0 Skipped
7 0 ms 0 kb 0 Skipped
Source Code
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. float height, width, area;
  5.  
  6. printf("Enter the height of the rectangle: ");
  7. scanf("%f", &height);
  8.  
  9. printf("Enter the width of the rectangle: ");
  10. scanf("%f", &width);
  11.  
  12. area = height * width;
  13.  
  14. printf("The area of the rectangle is: %.2f\n", area);
  15.  
  16. return 0;
  17. }
  18.