i need to write a loop program converting celsius to farenheit using the formula F=9*C/5+32 and terminating at -999
Toni_3 11 Newbie Poster
Schol-R-LEA commented: Shouldn't that be -273.15 °C (or -459.67 °F, as the case may be)? :) +11
Recommended Answers
Jump to PostF = 9 * C/5 + 32
Is the same as
F = (9/5) * C + 32With Python2 / is integer division, so avoid it by using 5.0 instead of 5
All 4 Replies
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Schol-R-LEA 1,446 Commie Mutant Traitor Featured Poster
Ene Uran 638 Posting Virtuoso
Slavi 94 Master Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.