fork download
  1. #include <stdio.h>
  2.  
  3. itob(i,s)
  4. unsigned int i;
  5. char*s;
  6. {
  7. int j;
  8. for(j=0;i>>++j;);
  9. for(;j--;)*(s++)=48+((i>>j)&1);
  10. *s=0;
  11. }
  12.  
  13. int main(void) {
  14. unsigned int i;
  15. char s[49];
  16. for(i=3624;i<3777;i++){itob(i,s);puts(s);}
  17. }
  18.  
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
111000101000
111000101001
111000101010
111000101011
111000101100
111000101101
111000101110
111000101111
111000110000
111000110001
111000110010
111000110011
111000110100
111000110101
111000110110
111000110111
111000111000
111000111001
111000111010
111000111011
111000111100
111000111101
111000111110
111000111111
111001000000
111001000001
111001000010
111001000011
111001000100
111001000101
111001000110
111001000111
111001001000
111001001001
111001001010
111001001011
111001001100
111001001101
111001001110
111001001111
111001010000
111001010001
111001010010
111001010011
111001010100
111001010101
111001010110
111001010111
111001011000
111001011001
111001011010
111001011011
111001011100
111001011101
111001011110
111001011111
111001100000
111001100001
111001100010
111001100011
111001100100
111001100101
111001100110
111001100111
111001101000
111001101001
111001101010
111001101011
111001101100
111001101101
111001101110
111001101111
111001110000
111001110001
111001110010
111001110011
111001110100
111001110101
111001110110
111001110111
111001111000
111001111001
111001111010
111001111011
111001111100
111001111101
111001111110
111001111111
111010000000
111010000001
111010000010
111010000011
111010000100
111010000101
111010000110
111010000111
111010001000
111010001001
111010001010
111010001011
111010001100
111010001101
111010001110
111010001111
111010010000
111010010001
111010010010
111010010011
111010010100
111010010101
111010010110
111010010111
111010011000
111010011001
111010011010
111010011011
111010011100
111010011101
111010011110
111010011111
111010100000
111010100001
111010100010
111010100011
111010100100
111010100101
111010100110
111010100111
111010101000
111010101001
111010101010
111010101011
111010101100
111010101101
111010101110
111010101111
111010110000
111010110001
111010110010
111010110011
111010110100
111010110101
111010110110
111010110111
111010111000
111010111001
111010111010
111010111011
111010111100
111010111101
111010111110
111010111111
111011000000