View Single Post
  #3   Spotlight this post!  
Unread 19-05-2007, 00:32
Flash Flash is offline
Registered User
None #1151
Team Role: Engineer
 
Join Date: May 2007
Rookie Year: 2007
Location: Rochester
Posts: 1
Flash is on a distinguished road
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.