摘要: #include <stdio.h>#include <math.h>int main(){ int dig=0;int count=0;int a;int num;scanf("%d",&num); do{ count++; a =num%10; if((count+a)%2==0){ dig=d 阅读全文
posted @ 2018-05-24 21:00 呦呦呦呵呵呵 阅读(100) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int x; int n = 0;//偶数个数 int j = 0;//奇数个数 do { scanf("%d",&x); if( (x > 0) && (x < 100000)) { if (x%2 == 0) n++; else j++; 阅读全文
posted @ 2018-05-24 20:58 呦呦呦呵呵呵 阅读(133) 评论(0) 推荐(0) 编辑