执行下列程序,显示的结果是______。first="china"second=""a=LEN(first)i=aDO WHILE i>=1second=second+SUBSTR(first,i,1)i=i-1ENDDO?second

执行下列程序,显示的结果是______。

first="china"

second=""

a=LEN(first)

i=a

DO WHILE i>=1

second=second+SUBSTR(first,i,1)

i=i-1

ENDDO

?second


相关考题:

PublicclassHoltextendsThread{PrivateStringsThreadName;Publicstaticvoidmain(Stringargv[]){Holth=newHolt();h.go();Holt(){};Holt(Strings){sThreadName=s;PublicStringgetThreadName(){returnsThreadName;}}Publicvoidgo(){Hotfirst=newHot(first);first.start();Hotsecond=newHot(second);second.start();}Publicvoidstart(){For(inti=0;i2;i++){System.out.print(getThreadName()+i);Try{Thread.sleep(100);}catch(Exceptione){System.out.print(e.getMessage());}}}}当编译运行上面代码时,将会出现()A.编译时错误B.输出first0,second0,first0,second1C.输出first0,first1,second10,second1D.运行时错误

( 10 )执行下列程序,显示的结果是 【 10 】 。one= "WORK"two = ""a = LEN ( one )i = aDO WHILE i=1two = two + SUBSTR ( one ,i , 1 )i=i - 1ENDDO? two

下列程序段的输出结果是【】。 include void main() {inti=10,sum=0;do{sum=+sum+i;i=i 下列程序段的输出结果是【 】。include<iostream.h>void main(){int i=10,sum=0;do{sum=+sum+i;i=i-2;}while(i>=2);cout<<sum<<end1;}

下面程序的输出结果是【】。 include using namespace std; int x; void funA(int,i 下面程序的输出结果是【 】。include<iostream>using namespace std;int x;void funA(int,int);void funB(int,int);int main(){int first;int second=5;x=6;funA(first,seconD) ;fimB(first,seconD) ;cout<<first<<" "<<second<<" "<<x<<end1;return 0;}void funA(int a,int B){int first;first=a+b;a=2*b;b=first+4;}void funB(int u,int v){int second;second=x;v=second+4;x=u+v;}

下面程序的输出结果是______。 include using namespace std; int x; void funA(int,int);void funB(int,int);int main(){int first;int second=5;x=6;funA(first,second);funB(first,second);cout<<first<<””<<second<<””<<x<<endl;return 0;}void funA(int a,int b){int first;first=a+b;a=2*b;b=first+4;}void funB(int u, int v){int second;second=x;v=second+4;x=u+v;}

执行下列程序,显示的结果是【 】。ne="WORK"two=""a=LEN(one)i=aDO WHILE i>=ltwo=two+SUBSTR(one,i, 1)i=i-1ENDDO?two

执行以下程序,显示的结果是。a=”foxpro”b=””i=LEN(a)DO WHILE i=lb=b+SUBSTR(a,i,1)i=i-1ENDD07b

2、以下程序段的执行结果是()。 s=0;i=1; do {s=s+i;i=i+2;} while (i<=0) printf(“%d”,s);A.1B.9C.0D.3

以下程序段的执行结果是()。 s=0;i=1; do {s=s+i;i=i+2;} while (i<=0); printf(“%d”,s);A.0B.1C.9D.3