求一c语言编程题,a.b.c分别代表百位,十位,个位.共1000个数字,位置不...答:include <stdio.h> include <string.h> int main(){ int i , j, k, a[1000];char s[3];for (i= 0 ; i< 1000; i++){ a[i] = i;} printf("输入ab, 如X_Y or XY_ or _XY, n 结束\n");while (1){ printf("input:");scanf("%s", s);if ('n' ==s[0]){ b...
用c语言编程,实现目标,急用,谢谢了 判断1到100中,哪些整数个位是3...答:int main(int argc, char *argv[]) {int i,sum=0;char ch[5]={"\0"};for(i=1;i<=100;i++){sprintf(ch,"%03d",i);if(ch[2]=='3'){sum=sum+i;}else{continue;}}printf("\nsum= %d",sum);return 0;}///用while///int main(int argc, char *argv[]) {int i=0,...