fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int length = 8;
  6. int width = 5;
  7. int area;
  8.  
  9. cout << "Enter Length and Width: " << endl;
  10. cin >> length >> width;
  11. area = length * width;
  12. cout << "Area is: " << area << endl;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
Enter Length and Width: 
Area is: 40