Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
62
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. using namespace std;
  3. int main()
  4. {
  5. int n;
  6. cout << "Podaj liczbę dodatnią";
  7. cin >> n;
  8. while (n<=0)
  9. {
  10. cout << "Podałeś liczbę ujemną!\n\nPodaj liczbę dodatnią ";
  11. cin >> n;
  12. }
  13. cout << "Liczba dodatnia wynosi:" << n << endl;
  14. system("PAUSE");
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement