#include<iostream>
using namespace std;
float prostopadloscian1(float a, float b, float h);
float prostopadloscian2(float a, float b, float h);
void pause();
int main()
{
float a, b, h;
cout << "podaj a" << endl;
cin >> a;
cout << "podaj b" << endl;
cin >> b;
cout << "podaj h" << endl;
cin >> h;
cout << "\nobjetosc prostopadloscianu wynosi: " << prostopadloscian1(a, b, h);
cout << "\nobjetosc prostopadloscianu wynosi: " << prostopadloscian2(a, b, h);
pause(); // system("PAUSE");
return 0;
}
float prostopadloscian1(float a, float b, float h)
{
float obj = a * b * h;
return obj;
}
float prostopadloscian2(float a, float b, float h)
{
return a * b * h;
}
void pause()
{
cout << "\n\nPress Enter to continue ";
cin.ignore();
int flag = cin.get();
}