当前位置:百科知识 > 计算机应用试题

问题描述:

[单选] 以下能够正确计算n!的程序是()。
A.Private Sub Commeadl_Click() n=5: x=1 Do x=x*i i=i+1 Loop While i<n Print x End Sub B.Private SuCommand1_Click() n=5: x=1: i=1 Do x=x*i i=i+1 Loop While i<n Print x End Sub C.Private Sub Command1_Click() n=5: x=1: i=1 Do x=x*i i=i+1 Loop Whilei<=n Print x End Sub D.Private Sub Commsndl_Click() n=5: x=1: i=1 Do x=x*i i=i+1 Loop While i>n Print x EnSub
参考答案:查看
答案解析:
☆收藏

随机题目