Woburn Challenge 2017-18 Round 1 - Junior Division

"Ugh, It's been so hot out lately, why does it have to be
degrees…"
" degrees? That's freezing!"
You've had quite enough of confusing conversations with Americans who assume you're using Fahrenheit when Celsius is clearly the way to go. Rather than argue with them, you've settled for writing a program to conveniently convert temperatures measured in degrees Celsius to Fahrenheit instead.
You came across the following formula, which holds true given that
is a temperature in degrees Fahrenheit while
is that same temperature
in degrees Celsius:
Given a value of , which is an integer between
and
(inclusive), determine the corresponding value of
, so that you can
express the equivalent temperature in degrees Fahrenheit for the
Americans' benefit.
It's guaranteed that will be chosen such that
will come out to
exactly an integer, but you may output it with
or more digits after
the decimal point.
Input Specification
The first and only line of input consists of a single integer, .
Output Specification
Output a single integer, the temperature in degrees Fahrenheit which is
equivalent to degrees Celsius.
Sample Input
20
Sample Output
68
Comments
I feel a lot better knowing other people also struggle with basic math, lol
That was a nice problem.
It worked for me with this formula:
F = (C*1.8)+32
Although quite simple, this is the first code that I write alone and it works
Dont have to do all the MATH on your own, thats what the program you create is for. BUT Keep in mind, You need to remember Math Formulas and Methods to Isolate the Unknown Variable. Im not giving Code, so hopefully this isn't giving too much help. Get F alone in the Above formula.
Hope this directs some of ya a little.
This took me a good minute, had to dig deep in the Math memory from School.
the formula was not easy to figure out until i googled it.
my first ever code , damn I feel stupid cause it took me so long. Finally though I got it right.....bravo me.
Congrats dude