home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_09
/
1009070a
< prev
next >
Wrap
Text File
|
1992-05-11
|
192b
|
12 lines
short calculate_net(net, N, w, x)
short *net, N, w[], x[];
{
short i;
*net = 0;
for(i=0; i<N+1; i++){
*net = *net + w[i]*x[i];
}
} /* ends calculate_net */