print('------------------') F = 0 dF = 10 while F <= 100: C = (F-32)*5/9.0 print("%4d %6.2f" %(F, C)) F = F + dF print('------------------') """ Terminal> python f2c_table_while.py ------------------ 0 -17.78 10 -12.22 20 -6.67 30 -1.11 40 4.44 50 10.00 60 15.56 70 21.11 80 26.67 90 32.22 100 37.78 ------------------ """