Games with the temperature
Toto has traveled to the United States to see his uncle. At his uncle's house, he is surprised to find that the thermostat reads degrees(!)
His uncle explains to him that in some countries they measure the temperature with a different system than the one he is used to in Greece. Specifically, in the United States, they use degrees Fahrenheit instead of degrees Celsius.
In order to convert Celsius to Fahrenheit, one has to:
- multiply by
- divide by
- add
Totos then plays a game where he calculates the boiling or freezing point of water in degrees Fahrenheit, but quickly realises that he could write a program that does this conversion (from Celsius to Fahrenheit) automatically. His only problem is that his coding skills have turned a little rusty and so he asks for your help.
We want to write a program that will read from the STDIN
input a positive integer , the temperature in degrees Celsius.
The program will print to the output STDOUT
a positive integer , the corresponding temperature in degrees Fahrenheit.
Attention! Each line of input or output should terminate with the line change character '\n'
.
Examples
1st
STDIN
25
STDOUT
77
2nd
STDIN
100
STDOUT
212
Comments