FIND THE ANSWERS

C programming problem? Can't use float values in Celsius Fahrenheit conversion?

Answer this question

  • C programming problem? Can't use float values in Celsius Fahrenheit conversion?


Answers

Answer #1 | 23/12 2013 17:29
This: printf("%d\t%d\n", cels, fahr); You changed your variables to floats, but you are still asking (telling, really) printf to print ints. Use %f for floats (and doubles) instead of %d.
Positive: 100 %
Answer #2 | 23/12 2013 17:30
http://pastebin.com/wS79fDRk give the above link a try it should work the problem is with control strings fload takes %f not %d
Positive: 100 %

Possible answer