网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列程序段运行结果是______。
Dim c As Integer,num As Integer
Num=29483
Do
c=num Mod 10
Print c;
num=num\10
Loop While num<>0
参考答案
更多 “ 下列程序段运行结果是______。Dim c As Integer,num As IntegerNum=29483Doc=num Mod 10Print c;num=num\10Loop While num<>0 ” 相关考题
考题
以下程序的输出结果是【18】。unsigned fun6(unsigned num){ unsigned k=1;do{k *=num;num/=10;}while (num);return k;}main(){ unsigned n=26;printf("%d\n", fun6(n));}
考题
下面程序的输出结果是______。 unsigned fun(unsigned num) { unsigned k=1; do{ k*=num%10; num/=10; }while(num); return(k); } main() { unsigned n=26; printf("%d\n",fun(n)); }A.0B.4C.12D.无限次循环
考题
以下程序的输出结果是【】。 include unsigned fun (unsigned num) {unsigned k=1; do{
以下程序的输出结果是 【 】 。include<iostream.h>unsigned fun (unsigned num){unsigned k=1;do{k*=num%10;num/=10;} while(num);return k;}void main( ){ unsigned n=26;cout <<fun(n) <<end1
考题
下面程序的输出结果是_______。 unsigned fun(unsigned num) { unsigned k=1; do { k*=num%10; num/=10; }while(num); return(k); } main() { unsigned n=26; printf("%d\n",fun(n)); }A.0B.4C.12D.无限次循环
考题
以下程序的输出结果是【】。include unsigned frn(ullsigned num) { unsi9ned k=1; do{
以下程序的输出结果是【 】。include<iostream.h>unsigned frn(ullsigned num){ unsi9ned k=1;do{k*=num%10;num/=10;} while(num);return k;}void main(){ unsigned n=26;cout<<fun(n) <<endl;}
考题
以下程序的输出结果是unsigned fun6(unsigned num){ unsigned k=1; do{k *=num%10;num/=10;} while (num); return k;}main(){ unsigned n=26; printf("%d\n", fun6(n));}
考题
用程序计算一个整数的各位数字的乘积,在下划线处应填写的语句是( )。INPUT”NUM=”TOhumcj=1DOWHILEnum!=Ocj=cj﹡MOD(num,10)ENDDO?cjA)num=INT(num/10)B)num=num-INT(num/10)C)num=INT(num%10)D)hum=num-INT(num%l0)
考题
执行下列程序段的输出结果是 int num=1234,s=0; while(num!=0) {s=s*10+num%10; num=num/10; } printf("%d",s);A.4321B.1234C.4D.10
考题
如下程序的运行结果是__________ num=1 for i in range(10,1,-2): num+=1 print(num)A.11B.5C.6D.10
热门标签
最新试卷