May-26-2018, 07:31 PM
Just to add to what killerrex already said - you need to supply some number as argument c when calling function, e.g.
also, more appropriate name of the function is
also instead of one char argument c, better use something descriptive like
print celsius(10.0)
, i.e. you want to convert 10.0 degrees cecsiusalso, more appropriate name of the function is
fahrenheit
(or something like celsius2farenheit
) because you convert Celsius to farenheit, not the other way aroundalso instead of one char argument c, better use something descriptive like
celcius
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs