Advertisement
Uncleeee

Untitled

Oct 30th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. double RectSquare(double& a, double& b)
  6. {
  7. return a * b;
  8. }
  9.  
  10. int main()
  11. {
  12. setlocale(LC_ALL,"rus");
  13. double a,b;
  14. cout << "Введите а: " << endl; cin >> a;
  15. cout << "Введите b: " << endl; cin >> b;
  16. cout << "Площадь прямоугольника = " << RectSquare(a,b) <<endl;
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement