#include
void main()
{
int i=999;
int b[3];
int n = 0;
do
{
int a = i;
do
{
b[n] = a%10;
n++;
a = a/10;
} while (a);
n = 0;
if(b[0]+b[1]+b[2]==5)
{
printf("%d ",i);
}
} while (--i&&i>=100);
}
#include
void main()
{
int i=999;
int b[3];
int n = 0;
do
{
int a = i;
do
{
b[n] = a%10;
n++;
a = a/10;
} while (a);
n = 0;
if(b[0]+b[1]+b[2]==5)
{
printf("%d ",i);
}
} while (--i&&i>=100);
}