Good day people.
I'm really new to C#.
I can't find the solution to the following question in my textbook:
Write a C# console program that converts temperature in degrees Celsius to degrees
Fahrenheit. Show all values from –40 degrees Celsius to +40 degrees Celsius in steps
of 5 degrees. For example, your output should show –40, –35, –30, –25 and so on, up
to +40 degrees Celsius.
For each value shown in degrees Celsius, your program is required to calculate the
equivalent temperature in degrees Fahrenheit using the following formula:
f = (9.0/5.0) * c + 32, where 'c' is the temperature in Celsius and 'f' is the
temperature in Fahrenheit.
The program must use a for loop.
I have no idea how to start.
Please help.
What I have tried:
I have tried looking on google for a solution but I haven't found a program that uses a for loop.
Please guys, your help is much appreciated.