// NA OCENĘ 5:
int n;
cout << "Podaj liczbe prostopadloscianow: ";
cin >> n;
for( int i = 0; i < n; i++ ){
cout << "Prostopadloscian " << i+1 << " z " << n << "\n";
int a, b, c;
cout << "Podaj krawedz (podstawy) a: ";
cin >> a;
cout << "Podaj krawedz (podstawy) b: ";
cin >> b;
cout << "Podaj krawedz (sciany) c: ";
cin >> c;
// P = 2 * Pp + Pb
// Pp = a * b
// Pb = 2 * a * c + 2 * b * c
// V = a * b * c
cout << "Pole: " << 2 * a * b + 2 * a * c + 2 * b * c << "\nObjetosc: " << a * b * c << "\n";