It's just math. It doesn't matter much what the programming language is, it is just math.
1. Create some interface to gather the centigrade temperature from the end user.
2. Do the math.
3. Provide some feedback to the user with the result.
Below is a Visual Basic Script that will do what you ask in 5 lines. It is not much different in Java Script, Visual Basic, C++, C#, VBA, etc., etc., etc.
dim c
dim f
c = InputBox("Please enter centigrade temperature")
f = (9 / 5) * c + 32
msgbox f