home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_01_06
/
1n06008b
< prev
next >
Wrap
Text File
|
1990-09-26
|
400b
|
29 lines
#include "stdio.h"
int addup(int a, int b);
inline int addup(int a, int b)
{
return (a + b);
}
int main()
{
int a
int b
int c;
for (a = 0; a < 10; ++a)
{
for (b = 0; b < 10; ++b)
{
c = addup(a,b);
printf("%i + %i = %i\n",a,b,c);
}
}
return 0;
}