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
#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 cout<< area << endl; return 0; }