fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. float a, h, pole;
  6.  
  7. cout << "Podstawa trojkata: ";
  8. cin >> a;
  9. cout << "Wysokosc trojkata";
  10. cin >> h ;
  11. pole = a * h/2;
  12. cout <<"Pole trojkata wynosi:"<< pole;
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5272KB
stdin
Standard input is empty
stdout
Podstawa trojkata: Wysokosc trojkataPole trojkata wynosi:4.55535e-25