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 >
Wrap
Text File
|
1991-12-04
|
278b
|
23 lines
#include <stdio.h>
main()
{
int a = 8, b = 2, c = 6, d = 3;
push(a);
push(b);
add(); /* t1 = a + b */
push(c);
push(d);
subtract(); /* t2 = c - d */
multiply(); /* t3 = t1 * t2 */
printf("Result = %d\n", pop());
return 0;
}
Result = 30