摘要: #include const int num=10; int main() { int n[num]; int x; int i; for(i=0;i=0&&x<=9) { n[x]++; } scanf("%d",&x); } for(i=0;i<num;i++) {... 阅读全文
posted @ 2019-04-19 17:11 不负、 阅读(158) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int x; int num[100]; int count=0; int sum=0; scanf("%d",&x); while(x!=-1) { num[count]=x; count++; sum+=x; scanf("%d... 阅读全文
posted @ 2019-04-19 16:49 不负、 阅读(487) 评论(0) 推荐(0) 编辑