fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int i,j;
  7. int n;
  8. int num;
  9. scanf("%d", &num);
  10. while (num>0)
  11. {
  12. j = num % 2;
  13. num = num/2;
  14. printf("%d", abs(j-1));
  15. }
  16. printf("\n");
  17. return 0;
  18. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
100000000000000