“”"
c = float(input('请输入一个摄氏温度:'))
f=c*9/5+32
print('%0.1f 摄氏温度转为华氏温度为 %0.1f ' %(c,f))
import math
radius = float(input('请输入圆的半径: '))
length = float(input('请输入圆的高'))
area = math.pi * radius * radius
volume = area*length
print('面积: %.2f' % area)
print('体积: %.2f' % volume)
feet = input('请输入英尺数:')
meters = float(feet)*0.305
print(meters)
M = float(input('请输入以千克计算的水量:'))
initialTemperature = float(input('请输入水的初始温度:'))
finalTemperature = float(input('请输入水的最终温度:'))
Q = M * (finalTemperature - initialTemperature)*4184
print('%.2f' % Q)
Annual_rate = float(input('请输入年利率:'))
difference = float(input('请输入差额:'))
interest = difference * (Annual_rate/1200)
print('%.2f' % interest)
v0 = float(input('请输入以米每秒为单位的初始速度v0:'))
v1 = float(input('请输入以米每秒为单位的末速度v1:'))
t = float(input('请输入以米每秒为单位速度变化所占用的时间t:'))
a = (v1 - v0)/t
print('%.2f' % a)
month_money = 100
Annual_rate = 0.05
month_rate = 0.00417
print('请存入100元')
x = 1 + 0.00417
first_month = 100 * x
second_month = first_month * x
three_month = second_month * x
four_month = three_month * x
five_month = four_month * x
six_month= five_month * x
print('账户总额%f'%six_month)
“”"
“”"
month = 0
moneyly = float(input('请存入100元:'))
for i in range(6):
month =(moneyly + month) * (1 + 0.00417)
print('六个月总额:%.f' %(month)
“”"
x = int(input('请输入0到1000之间的数字:'))
gw = x%10
sw = x/10%10
bw = x/10/10
sum = gw + sw + bw
print('sum:%d'% sum)