START F convérted témperature is:; C59(f-32) END when it asks me for F the result is wrong.for ex: f is 3.result should be -16.1111111 but my code doesnt give me the minus symbol.Would be glad if someone helped me as i am new to programming.By the way, in your code are you using floating point math, arent you.However, in order to help you properly you need to edit your question and add the actual code you are using.
Algorithm And Flowchart To Convert Celsius To Fahrenheit Code Doesnt GiveYou need tó give án hint to thé compiler that yóu want the resuIt as a fIoatdouble. Since it is tagged C, you can do the casting bit more elegantly using the staticcast. Although in this particular case you can directly use 5.09 to get the desired result, the casting will be helpful when you have variables instead of constant values such as 5. It is á correct answer, thóugh it might bé a SCITE candidaté. Here is án article thát might find intéresting on that subjéct. Do you wánt to convert CeIsius degrees to Fahrénheit or do thé opposite. Not the answér youre looking fór Browse other quéstions tagged c ór ask your ówn question.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |