Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. using namespace std;
  2.  
  3. int main()
  4. {
  5. int liczba;
  6.  
  7. cout<<"Podaj parzysta liczbe: ";
  8. cin >> liczba;
  9.  
  10. if ((liczba%2)==0)
  11. {
  12. for (int i=0; i<=(liczba+200);i=liczba+2)
  13. {
  14. cout<<liczba<<endl;
  15.  
  16. }
  17.  
  18. }
  19.  
  20. else
  21. cout<<"Podana liczba jest nieparzysta"<<endl;
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement