+ 1

Converting temperatures

i think im correct, but the calculations from (C) too (F) seem off, the numbers dont match my temperature sheet. ex: 10°C does not equal 129°F. Im tried this on my laptop https://code.sololearn.com/cWVhA83YT3Jd/?ref=app

1st Oct 2017, 12:39 AM
Gryn T
Gryn T - avatar
6 Answers
+ 6
c=(f-32)*(5.0/9.0) f=c*(9.0/5.0)+32
1st Oct 2017, 12:46 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
Yup formula error
1st Oct 2017, 12:45 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
Okay, but it is celcius not celcious lol.
1st Oct 2017, 12:44 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
10°C/5*9+32=50°F
1st Oct 2017, 12:45 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
yes @vengat in cpp it must be write in floating values as 9.0 and 5.0
1st Oct 2017, 12:59 AM
Azam
Azam - avatar
+ 1
lol thanks!
1st Oct 2017, 12:46 AM
Gryn T
Gryn T - avatar