home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer 7500
/
MAX_PROGRAMMERS.iso
/
INFO
/
C
/
SUPER_C.ZIP
/
ADD1TO2.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1980-01-01
|
277 b
|
17 lines
/* Example: Add 1 to 2 and Print It
*/
/* main()
Function: Add 1 and 2 and print the result.
Algorithm: Call add to add the two numbers, and printf to print them.
*/
main()
{
printf("1 + 2 = %d.\n",add(1,2));
}