fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Rectangle{
  5. int length;
  6. int width;
  7. };
  8.  
  9. int main() {
  10.  
  11. struct Rectangle r;
  12. r.length = 24;
  13. r.width= 35;
  14.  
  15. int area= r.length * r.width;
  16. cout<<area<<endl;
  17. return 0;
  18. }
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
840