下面程序的输出结果是[input=type:blank,size:4][/input]#includevoid main(){int i,j,k=19;while(i=k-1){k-=3;if(k%5==0){i++;continue;}else if(k<5)break;i++;}printf("i=%d,k=%d\n",ik);}
举一反三
- 下面程序的运行结果是 。#include<;stdio.h>;main(){int i,j,k=19;while(i=k-1){k-=3;if(k%5==0){i++;continue;}else if(k<;5) break;i++;}printf("i=%d,k=%d\n",i,k);}
- 写出下面程序执行后的运行结果。#include <;stdio.h>;int main(){ int i,k=19;while (i=k-1) {k-=3 ;if (k%5==0) { i++ ; continue ; }else if (k<;5) break ;i++;}printf("i=%d,k=%d",i,k);return 0;}
- 以下程序的输出结果是______ 。#include int main(void) { int i, k = 19; while(i = k - 1) { k -= 3; if(k % 5 == 0) { i++; continue; } else if(k < 5) break; i++; } printf("i=%d,k=%d", i, k); return 0;}
- 中国大学MOOC: 写出程序的运行结果。#include <stdio.h>int main(){int c[10],i=0,j=0,k=0 ;int a[3]={5,9,10} ; int b[5]={12,24,26,37,48} ;while (i<3 && j<5)if (a[i]>b[j]) {c[k]=b[j] ; k++ ; j++ ;}else {c[k]=a[i] ; k++ ; i++ ;}while (i<3) {c[k]=a[i] ; i++ ; k++ ;}while (j<5) {c[k]=b[j] ; j++ ; k++ ;}for (i=0; i<k; i++) printf("%d ",c[i]); return 0;}
- 现有如下程序段: #include"stdio.h" main() {int k[30]={12,324,45,6,768,98,21,34,453,456}; int count=0,i=0; while(k[i]) {if(k[i]%2==0||k[i]%5==0)count++; i++;} printf("%d,%d\n",count,i);} 则程序段的输出结果为.