Answer:
start = float(input())
end = float(input())
increment = float(input())
if start <= end and increment > 0:
print("Fahrenheit \t Kelvin \t Celsius")
for f in range(int(start), int(end), int(increment)):
k = 5.0/9.0 * (f - 32) + 273.15
c = (f - 32) / 1.80
print("%.2f" % f + "\t\t" + "%.2f" % k + "\t\t" + "%.2f" % c)
else:
print("Invalid input!")
Step-by-step explanation:
The code is in Python.
Let the user enter three values, start, end, and increment
Check the values. If start is smaller than or equal to end and increment is greater than zero:
Create a for loop that iterates between start and end with the increment value. Convert each of the value to kelvin and celsius using the formulas. Print the each value.
Otherwise, print invalid input