fork(1) download
  1. #include <stdio.h>
  2.  
  3. void print(int n)
  4. {
  5. if( n > 0 )
  6. {
  7. n--;
  8. print( n / 26 );
  9. printf( "%c", ( n % 26 ) + 65 );
  10. }
  11. }
  12.  
  13. int main()
  14. {
  15. int n;
  16. scanf( "%d", &n );
  17. print( n );
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 1724KB
stdin
703
stdout
AAA