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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat118.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <stdlib.h>
  5. #include <stdio.h>
  6.  
  7. void main()
  8. {
  9.    int i;
  10.    char string[33];
  11.    long value = 123456789L;
  12.  
  13.    for(i=2;i<=36;i=i+2)
  14.    {
  15.        ltoa(value,string,i);
  16.        printf("¬°╛π╝╞ = %ld ┬α┤½ñº░≥⌐│ = %2d ┬α┤½½ßñºªrªΩ = %s\n",
  17.                value, i, string);
  18.    }
  19. }
  20.