Loading...
Submission
# When Author Problem Language CPU Memory
19815 2024-05-05 13:07:27 rifat414141 Rectangle Area Python 3 14 ms 8660 kb Runtime Error - 1
Test Cases
# CPU Memory Points
1 14 ms 8660 kb 0 Runtime Error
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. def main():
  2. # Read height and width from user input as floats
  3. height = float(input())
  4. width = float(input())
  5.  
  6. # Calculate area of the rectangle
  7. area = height * width
  8.  
  9. # Print the area
  10. print(area)
  11.  
  12. if __name__ == "__main__":
  13. main()
  14.