Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6.  
  7. int area(int l = 1, int w = 1)
  8. {
  9.  
  10. return l * w;
  11.  
  12. }
  13.  
  14.  
  15.  
  16.  
  17. int main()
  18. {
  19.  
  20. int l{ 5 };
  21.  
  22. int w{ 9 };
  23.  
  24. //for (int i = 0; i < 20; ++i)
  25. cout << area(l) << endl;
  26.  
  27.  
  28.  
  29.  
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement