Loading...
Submission
# When Author Problem Language CPU Memory
19812 2024-05-05 13:05:34 rifat414141 Rectangle Area C++ 17 1 ms 3496 kb Wrong Answer - 1
Test Cases
# CPU Memory Points
1 1 ms 3496 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 <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. // Declare variables to store height and width
  6. double height, width;
  7.  
  8. // Read input from the user
  9. cin >> height;
  10. cin >> width;
  11.  
  12. // Calculate area of the rectangle
  13. double area = height * width;
  14.  
  15. // Print the area
  16. std::cout << "Area of the rectangle is: " << area << std::endl;
  17.  
  18. return 0;
  19. }
  20.