下列程序的输出结果是()。#includestdio.hintMyFuntion(intn);intmain(){intentry=12345;printf(%5d,MyFuntion(entry));return0;}intMyFuntion(intPar){intresult;result=0;do{result=result*10+Par%10;Par/=10;}while(Par);returnresult;}
举一反三
- 下列程序的输出结果是:sum = 0 def sum(i1, i2): result = 0 for i in range(i1, i2 + 1): result += i return result print sum(1, 10)
- 下列语句的执行结果是: result = 0 i = 1 while result <; 10: result += i i += 1 if i >; 2: break print(result) A: 3 B: 5 C: 7 D: 10
- 下面程序段的输出结果是( )。 public class Test public static void main ( String[] args) int result=0; for ( int i=1;i<=5;i++) if ( i%2==0 ) continue; result + =i; System. out. println ("result is " + result ); A: result is 7 B: result is 8 C: result is 9 D: result is 10
- 【单选题】下面 C代码的输出结果是()。int answer,result;answer=100;result=answer-10;printf( “The result is %d” , result+5); A. The result is 90 B. The result is 95 C. The result is 10 D. The result is 100
- 以下程序的输出结果是()intmain(){intn=4;while(n--)printf("%d",--n);return0;}