用(2)的条件改写(3)初学计算机,一宿舍都在run,没有run出来,大家帮帮忙,要无了!急!
n = int(input('请输入正整数n的值:')) s = 0 for i in range(2,n+1,2): s += i print(s)