Odpowiedź:
#include <iostream>
using namespace std;
int main()
{
float a, b, h, pole;
cout << "Podaj a: "; cin >> a;
cout << "Podaj b: "; cin >> b;
cout << "Podaj h: "; cin >> h;
pole = (a+b)*h/2;
cout << "Pole wynosi: " << pole << endl;
return 0;
}
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
Odpowiedź:
#include <iostream>
using namespace std;
int main()
{
float a, b, h, pole;
cout << "Podaj a: "; cin >> a;
cout << "Podaj b: "; cin >> b;
cout << "Podaj h: "; cin >> h;
pole = (a+b)*h/2;
cout << "Pole wynosi: " << pole << endl;
return 0;
}