#include
int fun(int x)
{
int n, s1, s2, s3, t;
n = 0;
t = 100;
while (t <= x)
{
s1 = t % 10; s2 = (t / 10) % 10; s3 = t / 100;
if (s1 + s2 + s3 == 15)
{
printf("%d ", t);
n++;
}
t++;
}
return n;
}
int main()
{
int x = -1;
while (x > 999 || x < 100)
{
printf("Please input(100
printf("nThe result is: %dn", fun(x));
return 0;
}
}