home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d7xx / d795 / pstools.lha / PSTools / PSTools1.lha / source / test.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-14  |  216 b   |  20 lines

  1. #include <stdio.h>
  2.  
  3. main(int ac,char **av)
  4. {
  5. double a,b;
  6.  
  7.     if(*av[1] == '1')
  8.     {
  9.     puts("1");
  10.     scanf("%f", &a);
  11.     }
  12.     else
  13.     {
  14.     puts("2");
  15.     scanf("%lf", &b);
  16.     }
  17.     printf("%f %f\n",a,b);
  18. }
  19.  
  20.