第二次作业

a = input('输入一个数字:')
b = input('再输入一个数字:')
sum2=int(a)+int(b)

print('两个数之和是{}'.format(sum2))

  

c = input('输入摄氏温度:')
f = float(c)*9/5+32
print('{}摄氏温度转化为华氏温度是{}'.format(c,f))

  

f = input('输入华氏温度:')
c = 5/9*(float(f)-32)
print('{}摄氏温度转化为华氏温度是{}'.format(f,c))

  

猜你喜欢

转载自www.cnblogs.com/hhhhuang/p/8947117.html