Discuss / Python / 提交作业

提交作业

Topic source

nakiri_kakak

#1 Created at ... [Delete] [Delete and Lock User]

-- coding: utf-8 --

x = int(input('去年小明的成绩 %d\n')) y = int(input('今年小明的成绩 %d\n'))

rate = (y-x)*100/x

print('小明成绩的增幅 %.1f%%' % rate)


  • 1

Reply