vb 题求大佬 有答案但是算出的答案跟给的答案不一样 求解答
privatesubcmd1_click()dimnasinteger,iasintegern=1fori=10to1step-1callsub2(i,n)printi,...
private sub cmd1_click()dim n as integer ,i as integern=1for i = 10 to 1 step -1call sub2(i,n)print i,nnext iend subprivate sub sub2(x as integer, y as integer) static n as integer dim i as integerfor i = 2 to 1 step -1n = n + xx = x - 1next iy = n-yend sub窗体第一行 8,18第三行 5,14最后一行 -1,15
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询