Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- double RectSquare(double& a, double& b)
- {
- return a * b;
- }
- int main()
- {
- setlocale(LC_ALL,"rus");
- double a,b;
- cout << "Введите а: " << endl; cin >> a;
- cout << "Введите b: " << endl; cin >> b;
- cout << "Площадь прямоугольника = " << RectSquare(a,b) <<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement