what to take as input and what to show as output?can you please elaborate.
Understanding problem statement
Please share the link of the Question
Hi Subham, you have to take three numbers as input:
Minimum Fahrenheit value, which is the min required temp in Fahrenheit
Maximum Fahrenheit value, which is the max required temp in Fahrenheit
Step, which is the interval at which you need to print the output like in the sample input given, you have to print the output after every 20 degrees rise in temperature.
The output format is as follows,
You have to print the space separated values of temperature in Fahrenheit and its corresponding value in Celsius. For every interval, you have to print these values in a new line.
For example, consider the sample input:
0
100
20
Here 0 is min Fahrenheit temp and 100 is max Fahrenheit temperature. You have to print the value of temperature in Celsius at intervals of 20 degrees.
So, the output is:
0 -17
20 -6
40 4
60 15
80 26
100 37
Hint: Use float data type for calculations because 5/9 gives 0 in integer.