Passerby 1:______. Is there a petrol station? Passerby 2: Turn left at the end of th
Passerby 1:______. Is there a petrol station?
Passerby 2: Turn left at the end of this road. It's on your right hand side.
Passerby 1:______. Is there a petrol station?
Passerby 2: Turn left at the end of this road. It's on your right hand side.
A.Where are you going
B.Thank you just the same
C.That,s so bad
D.I think so
A.n=10 : s=1 : Do : s=s*i : i=i+1 : Loop While i
B.n=10 : s=1 : i=1 : Do: s=s*i : i=i+1 : Loop While i
C.n=10 : s=1 : i=1 : Do : s=s*i : i=i+1 : Loop while i<=n
D.n=10 : s=1 : i=1 : Do: s=s*i : i=i+1 : loop While i>n
设变量已正确定义,则以下能正确计算f=n!的程序段是
A.f=0; for(i=1; i<n; i++)f*=i;
B.f=1; for(i=1; i<n; i++)f*=i;
C.f=1; for (i=n; i>1; i++) f*=i;
D.f=1; for (i=n; i>=2; i--)f*=i;
A.409
B.277
C.1
D.91
A.int i=10;while (1){i--;if(i==1)break;}
B.or(int i=1;i<10;i++){i--;}
C.int i=0;do{i++;}while(i>=0)
D.int i=1;for(;;)i=i+1
A.=0; for(i=1; i<=n; i++)f*=i
B.=1; for(i=1; i<n; i++)f*=i
C.=1; for(i=n; i>1; i++)f*=i
D.=1; for(i=n; i>=2; i--)f*=i