Loading...
Submission
# When Author Problem Language CPU Memory
21447 2024-09-14 21:00:16 MUCB232 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.  
  7. printf("Enter the height of the rectangle: ");
  8. scanf("%f", &height);
  9. printf("Enter the width of the rectangle: ");
  10. scanf("%f", &width);
  11.  
  12.  
  13. area = height * width;
  14.  
  15.  
  16. printf("The area of the rectangle is: %.5f\n", area);
  17.  
  18. return 0;
  19. }