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

( 10 )执行下列程序,显示的结果是 【 10 】 。

one= "WORK"

two = ""

a = LEN ( one )

i = a

DO WHILE i>=1

two = two + SUBSTR ( one ,i , 1 )

i=i - 1

ENDDO

? two


相关考题:

有以下程序#include stdio.h#include string.hmain(){ char str[ ][20]={"One*World","One*Dream!"},*p=str[1];printf("%d,",strlen(p));printf("%s\n",p);}程序运行后的输出结果是A)9,One*WorldB)9,One*Dream !C)10,One*Dream !D)10,One*World

下面程序的输出结果是( )。 public class Sun { public static void main(String args[ ]) { int i = 1; switch (i) { case 0: System.out.println("zero"); break; case 1: System.out.println("one"); case 2; System.out.println("two"); default: System.out.println("default"); } } }A.oneB.one,defaultC.one,two,defaultD.default

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

下面程序的输出结果是( )。 public class Sun { public static void main(String args[ ]) { int i = 1; switch (i) { case 0: System.but.println("zero"); break; case 1: System.out.println("one"); case 2: System.out.println("two"); default: System.out.println ("default"); } } }A.oneB.one, defaultC.one, two, defaultD.default

编译和执行以下代码,输出结果是( )。 int i=1; switch (i) { case 0: System.out.print("zero,"); break; case 1: System.out.print("one,"); case 2: System.out.print("two,"); default: System.out.println("default"); }A.one,B.one,two,C.one,two,defaultD.default

有以下程序#includestdio.h#includestring.hmain( ){char str[][20]={“Qne*World”,“one*Dream!”},*P=str[1 ].prinff(“%d,”,strlen(p));printf(“%s\n”,P); ’}程序运行后的输出结果是A.9,One*World S)9,One*Dream!B.10,One*Dream!C.10,One*World

有以下程序:程序运行后的输出结果是( )。A.10,One*Dream!B.9,One*Dream!C.9,One*WorldD.10,One*World

有以下程序:程序运行后的输出结果是( )。A.9.One*WorldB.9.One*Dream!C.10.One*Dream!D.10.One*World

【填空题】运行下列程序,输出结果是____。 #include <iostream> using namespace std; enum opt{ONE,TWO,THREE,FOUR,FIVE,SIX,SEVEN}op; int main(void) { cout<<ONE; cout<<TWO; cout<<SIX; return 0; }