Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <algorithm>
  4.  
  5. using namespace std;
  6.  
  7.  
  8.  
  9.  
  10. void funkcja (int liczba)
  11. {
  12.  
  13. if(liczba <=100 || liczba => 200)
  14. {
  15. cout<<"Niewlasciwa liczba";
  16. }
  17. else
  18. {
  19. if(liczba<150)
  20. cout<<"Liczba jest mala";
  21.  
  22. else if(liczba<175)
  23. cout<<"Liczba jest srednia";
  24.  
  25. else
  26. cout<<"Liczba duza";
  27. }
  28.  
  29.  
  30. }
  31.  
  32.  
  33.  
  34.  
  35.  
  36. int main() {
  37.  
  38. int liczba;
  39.  
  40.  
  41. cin>>liczba;
  42.  
  43.  
  44. funkcja(liczba);
  45.  
  46.  
  47. return 0;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement