下面程序的运行结果是 。#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;}
- 下面程序的输出结果是[input=type:blank,size:4][/input]#include<stdio.h>void 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 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(){inti,j,k;for(i=1;i<=6;i++){for(j=1;j<=20-3*i;j++)printf("");for(k=1;k<=i;k++)printf("%3d",k);for(k=i-1;k>0;k--)printf("%3d",k);printf("\n");}}