int i,a,b,c;
for(i=100;i<1000;i++)
{a=i%10;
b=i/10%10;
c=i/100;
if(a>c&&c>b&&a*b*c==a+b+c)
printf("%5d",i);}
for(i=100;i<1000;i++)
{a=i%10;
b=i/10%10;
c=i/100;
if(a>c&&c>b&&a*b*c==a+b+c)
printf("%5d",i);}
# include<stdio.h> int main(void) { int i = 0; int j = 0; int m = 0; for(i = 1; i <= 9; i++) for(j = 0; j < 9; j++) for(m = 0; m < 9; m++) if(i + j + m == i * j *m && m > i && i > j) printf("%d%d%d\n", i, j, m); return 0; }