Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
116
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 liczby[2000];
  8. int liczba;
  9. cout<<"Podaj liczbe";
  10. cin>>liczba;
  11. int i=0;
  12. while(liczba=0)
  13. {
  14.  
  15. if(liczba%2==0)
  16. liczby(i)=0;
  17. else
  18. liczby(i)=1;
  19. i++;
  20. liczba=liczba/liczba
  21.  
  22. cout<<liczby(i)<<endl;
  23.  
  24.  
  25.  
  26.  
  27.  
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36. return 0;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement