经典指数          
原因
1412
浏览数
0
收藏数
 

#include  int main( ) {     int a, b, i, tot, c1, c2;     scanf("%d %d", &a, &b);     tot = 0;     for (i = a; i <= b; i++) {         c1 = i / 10;         c2 = i % 10;         if ((c1 + c2) % 3 == 0)             tot++;     }     printf("%d\n", tot);     return 0; } 输入:7 31 输出:_____1____

     举报   纠错  
 
切换
暂时还没有答案,欢迎分享你的解答 . . .
撰写答案
扫描后移动端查看本题