ch=getchar();//可以使用while循环 term=result; while(ch!=';') {
scanf(\if(ch=='-') term*=-1;
result+=term; ch=getchar(); }
printf(\}
/**********
【习题5.233】请仅在程序空缺处填入合适内容,使其实现 功能:输入并计算一个只包含乘除运算的表达式,其中每个 运算数都是正整数,运算符都是“*”或“\\”,除第一个数 以外,其余每个数前面都有一个运算符,表达式以分号“;” 终止,例如“9/3*7;”。 **********/
void main()
{ intterm,result; charch;
scanf(\
ch=getchar();//可以使用while循环 term=result; while(ch!=';') {
scanf(\if(ch=='*') result*=term; else result/=term; ch=getchar(); }
printf(\}
/**********
【习题5.255】请仅在程序空缺处填入合适内容,使其 实现功能:输入非负整数到变量n和0到9中的某一个数 到变量d,统计n的各位数字中值为d的个数num,并求
各位数字中的最小值m。 **********/
void main() { longint n; intd,num,m=9,t; num=0;
scanf(\do {
t=n; n=n/10; if(t==d) num++; if(t printf(\}

