Np. tak (poniżej funkcja main):
int main()
{
float a,b,h;
cout << "Podaj dlugosc jednej podstawy: ";
cin >> a;
cin >> b;
cout << "Podaj wysokosc: ";
cin >> h;
cout << "\nPole wynosi " << (a+b)*h/2;
}
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
Np. tak (poniżej funkcja main):
int main()
{
float a,b,h;
cout << "Podaj dlugosc jednej podstawy: ";
cin >> a;
cout << "Podaj dlugosc jednej podstawy: ";
cin >> b;
cout << "Podaj wysokosc: ";
cin >> h;
cout << "\nPole wynosi " << (a+b)*h/2;
}