Advertisement
Guest User

Czy liczba jest większa, mniejsza czy równa 0

a guest
Nov 18th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n;
  8. cout<<"Podaj liczbe:";
  9. cin>> n;
  10. if (n>0)
  11. cout<<"Jest wieksza od 0"<<endl;
  12. else
  13. if (n<0)
  14. cout<<"Jest mniejsza od 0"<<endl;
  15. else
  16. cout<<"Jest rowna 0"<<endl;
  17.  
  18. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement