#include <iostream>
#include <math.h>
using namespace std;
int main ()
{
float a, b, h, wynik;
cout <<"pole trapezu" <<endl <<endl;
cout << "a=";
cin >> a;
cout << "b=";
cin >> b;
cout <<"h=";
cin >> h;
wynik= 0.5*(a+b)*h;
cout <<endl <<endl;
cout << a << "+" << b << "*" << 0.5 << "*" <<h<< "=" << wynik;
cout << "\n\n";
system ("pause");
return 0;
}
Brak komentarzy:
Prześlij komentarz