#include<stdio.h>
long Fact(int n);
int main()
{
int m, a, b, c;
for (m = 100; m < 1000; m++)
{
a = m / 100;
b = (m - a * 100) / 10;
c = m % 10;
if (m = Fact(a) + Fact(b) + Fact(c))
{
printf("%d\n", m);
}
return 0;
}
long Fact(int n)
{
int i,n;
long result = 1;
for (i = 1;i <= n;i++)
{
result *= i;
return result;
}
}
- 3 回答
- 0 关注
- 1731 浏览
添加回答
举报
0/150
提交
取消