以下程序段执行后整型变量n 的值为 n=0 for i=1 to 20 step 5 n=n+i next I A.50 B.34 C.15 D.210求C的值if a>5 then if b3 then c=a*b else c=a mod b end if A.2 B.-1 C.1 D.6 这题也请说明下

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/09 13:53:17
以下程序段执行后整型变量n的值为n=0fori=1to20step5n=n+inextIA.50B.34C.15D.210求C的值ifa>5thenifb3thenc=a*belsec=amodben

以下程序段执行后整型变量n 的值为 n=0 for i=1 to 20 step 5 n=n+i next I A.50 B.34 C.15 D.210求C的值if a>5 then if b3 then c=a*b else c=a mod b end if A.2 B.-1 C.1 D.6 这题也请说明下
以下程序段执行后整型变量n 的值为 n=0 for i=1 to 20 step 5 n=n+i next I A.50 B.34 C.15 D.210
求C的值
if a>5 then
if b3 then c=a*b else c=a mod b end if
A.2 B.-1 C.1 D.6
这题也请说明下

以下程序段执行后整型变量n 的值为 n=0 for i=1 to 20 step 5 n=n+i next I A.50 B.34 C.15 D.210求C的值if a>5 then if b3 then c=a*b else c=a mod b end if A.2 B.-1 C.1 D.6 这题也请说明下
n=34,
for循环过程(i 每次加5):
i=1,n=0+1=1
i=6,n=1+6=7
i=11,n=7+11=18
i=16,n=18+16=34
第二道题不知道a和b的初始值,没法计算.