Centigrade and Fahrenheit
CodeChefOpen on judge ↗
Rita's teacher has given her an assignment on temperature conversion. Given a temperature value in Celcius, Rita needs to find the equivalent temperature in Fahrenheit and vice-versa. There are two types of queries:- - Type 1: $1$ $C$. $C$ is the temperature in Celcius, and Rita needs to find the equivalent temperature in Fahrenheit. - Type 2: $2$ $F$. $F$ is the temperature in Fahrenheit, and Ri
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start