Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
19814 2024-05-05 13:06:25 rifat414141 Rectangle Area C++ 17 1 ms 3532 kb Accepted
Test Cases
CPU Memory Verdict
1 1 ms 3496 kb Accepted
2 1 ms 3392 kb Accepted
3 1 ms 3500 kb Accepted
4 1 ms 3460 kb Accepted
5 1 ms 3528 kb Accepted
6 1 ms 3532 kb Accepted
7 1 ms 3388 kb Accepted
Source Code
program.cpp
Download
  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. cout<< area << endl;
  17.  
  18. return 0;
  19. }