|
Re: C Programming Homework Help Needed
Joel is correct. Remove the & from your printf functions. The & means "address of". Printf doesn't want the address of the location where the number is kept, printf wants the number itself.
FYI, the & is correct in the scanf function. Scanf requires the address of the variable.
Btw NAN means "Not A Number".
Flash.
|