fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main()
  4. {
  5. int num=1342553424, rem = 0;
  6. char res[sizeof(int) * 8] = {0};
  7. memset(res, ' ', sizeof(res)-1);
  8. int lastpos = sizeof(int) * 8 - 1;
  9. while(num!=0)
  10. {
  11. rem = num%6;
  12. res[lastpos--] = rem + '0';
  13. num = num/6;
  14. }
  15. printf("%s", res + lastpos + 1);
  16. }
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
341115325040