home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_10_02 / 1002026b < prev    next >
Text File  |  1991-12-04  |  278b  |  23 lines

  1.  
  2. #include <stdio.h>
  3.  
  4. main()
  5. {
  6.     int a = 8, b = 2, c = 6, d = 3;
  7.  
  8.     push(a);
  9.     push(b);
  10.     add();        /* t1 = a + b */
  11.     push(c);
  12.     push(d);
  13.     subtract();    /* t2 = c - d */
  14.     multiply();    /* t3 = t1 * t2 */
  15.     
  16.     printf("Result = %d\n", pop());
  17.  
  18.     return 0;
  19. }
  20.  
  21. Result = 30
  22.  
  23.