在vb中,若k=15,则执行以下程序段后s的值? i=1:s=0 Do If k mod i

0 Then s=s+1End Ifi=i+1Loop While i<k
2024-11-25 16:05:46
推荐回答(2个)
回答1:

Loop While

回答2:

s的值是 3
k = 15
i = 1: s = 0
Do
If k Mod i = 0 Then
s = s + 1
End If
i = i + 1
Loop While i < k
Print s