If the type of k is int, what is the number of iterations of the following while loop?k = 50
while k > 1:
print(k)
k = k // 2
- 首页
- 医师定期考核
-
1.If the type of k is int, what is the number of iterations of the following while loop?
-
2.若k为整形, 下述while循环执行的次数为 k=1000 while k>1: print(k) k = k/2
-
3.k=10000while k>1: print(k) k=k/2
-
4.A.K 3 = K 1 - K 2B.K 3 =( K 1 / K 2 )C.K 3 =( K 1 / K 2 ) 2D.K 3 = K 1 -2 K 2
-
5.有以下程序#include main(){ char *s="12134"; int k=0, a=0 ; while( s[ k +1 ] ) {
-
6.设有程序段:int k=10;while (k=0) k=k-1; ,则下面描述正确的是
-
7.What is the output of the following code?
-
8.main() { int k=11; printf("k=%d,k=%o,k=%x",k,k,k); }程序的输出是:( )
-
9.(1) i=1; k=0; while(i
-
10.下面程序的输出是:int k = 11;printf("k=%d,k=%o,k=%x\n",k,k,k);