【简答题】下列程序的执行结果是______。 PrivateFunctionP(NASInteger) Fori=1 To N SUM=SUM+i Nexti P=SUM End Function Privte Sub Commandl_Click() S=P(1)+P(2)+P(3)+P(4) Print S End Sub
【单选题】单击一次命令按钮后,下列程序的执行结果是 Private Sub Command1_Click() s=P(1) + P(2) + P(3) + P(4) Print s End Sub Public Function P(N As Integer) Static Sum For i=1 To N Sum=Sum + i Next i P=Sum End Function( )。
【单选题】单击—次命令按钮后,下列程序的执行结果是 Private Sub Command1_Click( ) S=P(1)+P(2)+P(3)+P(4) Print S End Sub Public Function P(N As Integer) Static Sum For i=1 To N Sum=Sum+i Next i P=Sum End Function