i=0
def recursiveIntegers(n):
if n==1:
return 1;
else:
reqval= n-1;
print("less than or equal to the original -->",reqval);
return recursiveIntegers(reqval)
userValue = int(input("Enter value "))
recursiveIntegers(userValue)
为了打印出相同的价值,我缺少什么??
答案 0 :(得分:0)
首先打印'n'然后执行'reqval = n-1'