...from standard input into...? Write a statement that reads a floating point (real) value from standard input into temperature. Assume that temperature. has already been declared as an double variable.
So far, I wrote:
scanf("%f", &temperature);
but it's not right according to my online homework. The correction says that the %f part is not right. I tried %d and it didn't work either. Any clues?
Thanks.
Bookmarks