Odpowiedź:
#include <iostream>
int pole(int a, int b){
return a * b;
}
int main() {
int a, b;
std::cout << "Podaj dlugosc boku a\n";
std::cin >> a;
std::cout << "Podaj dlugosc boku b\n";
std::cin >> b;
std::cout << "Pole prostokata wynosi " << pole(a, b);
}
Wyjaśnienie: