SHARE
TWEET

Untitled

a guest Oct 15th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top