Advertisement
Guest User

Pole trójkata

a guest
Nov 18th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int a;
  8. int h;
  9. int wynik;
  10.  
  11. cout <<"Podaj dlugosc podstawy:";
  12. cin >>a;
  13. cout <<"Podaj dlugosc wysokoœci:";
  14. cin >>h;
  15. wynik=a*h/2;
  16. cout <<"Wynik="<<wynik<<endl;
  17.  
  18. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement