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 |
Source Code
#include <bits/stdc++.h> using namespace std; int main() { // Declare variables to store height and width double height, width; // Read input from the user cin >> height; cin >> width; // Calculate area of the rectangle double area = height * width; // Print the area std::cout << "Area of the rectangle is: " << area << std::endl; return 0; }