填空题
下列程序的功能是对输入的一行字符中的数字字符的字面值累加,输出此累加和,请填空。 #include<stdio.h> #include<ctype.h> main() { char c; int a,s=0; while( ______) if(isdigit(C) ) {a=c-’0’;s+=a;} printf("s=%d",s); }
【参考答案】
(c=getchar())!=’\n’
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
Jackson方法是一种面向 ______的结构化方法。
点击查看答案&解析
填空题
表达式1 2*(int)3.7 (int)(2.4*(1.5+2.5))值的数据类型为 ______。
点击查看答案&解析
相关试题
若有定义int a[4][4]={{1,2,...
设有下列程序:#include<stdio.h>#inc...
下列程序的输出结果是 ______。#de...
设有下列的程序段:char str[]= Hello...
下列程序输出的结果是______。int m...