home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT101.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-06  |  499 b   |  19 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat101.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <stdlib.h>
  5. #include <stdio.h>
  6.  
  7. void main()
  8. {
  9.    int number = 12345;
  10.    char string[25];
  11.    int base;
  12.  
  13.    for(base=2;base<=36;base=base+2)
  14.    {
  15.        itoa(number, string, base);
  16.        printf("╛π╝╞ = %d ░≥⌐│ = %2d ªrªΩ = %s\n", number, base, string);
  17.    }
  18. }
  19.