Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6.  
  7. {
  8.  
  9. int a, b, x;
  10.  
  11. cout << "Podaj bok a:";
  12. cin >> a;
  13. cout << "Podaj bok b:";
  14. cin >> b;
  15.  
  16. if (a > 0)
  17. {
  18. x= a*b;
  19. cout << "Pole prostokąta wynosi : " << x;
  20. }
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement