读程序,写出运行结果。#includemain( ){ints=0,a=5,n;scanf("%d",&n);do{s+=1;a=a-2;}while(a!=n);printf("%d,%d\n",s,a);}若输入的值1,运行结果为: _________________
查看答案
读程序,写出运行结果。#include main( ){ int sum=20,n=1;while(n<3) {sum=sum-n; n++; }printf(“%d,%d”,n,sum);}运行结果为:_________________
读程序,写出运行结果。void main(){inti;char c;i='A';c=65;printf("%c,%d\n",c,c);printf("%c,%d\n",i,i);}运行结果为: _________________
读程序,写出运行结果。#includevoid main(){int a[10]={1,2,3,4,5,6,7,8,9,10};int i=0,sum=0;do{sum=sum+a[i];i++;}while(i<10);printf("%d",sum/i);}运行结果为:_________________
读程序:写出以下程序运行结果。void main(){int i,j,m,n;i=2;j=3;m=++i;n=j++;printf(“%d,%d,%d,%d”,i,j,m,n);}运行结果为: _________________