#include<stdio.h> intis( int number ); voidcount_sum( int a, int b ); intmain(){ int a, b; scanf("%d %d", &a, &b); if (is(a)) printf("%d is counted.\n", a); if (is(b)) printf("%d is counted.\n", b); count_sum(a, b); return0; } intis(int number){ //1526 int c,d; int sum=0; while(number!=0) { c=number%10; sum=sum+c; number=number/10; } if(sum==5) { return1; } else { return0; } }//104 999 voidcount_sum( int a, int b ){ int i; int sum1=0; int count=0; for(i=a; i<=b; i++) { if(is(i)) { count++; sum1=sum1+i; } } printf("count = %d, sum = %d",count,sum1); }