#include <stdio.h>
int main()
{
int m, a,b,c,d;
scanf_s("%d", &m);
a = (int)(m / 100);
b = (int)((m -a100)/10);
c = (int)(m -100a-10b);
d = (a * aa )+ (b * bb )+( c * cc);
// printf("%d %d %d %d %d",m,a,b,c, d);
if (m == d)
{
printf("%d是水仙花数",m);
}
else
{
printf("%d不是水仙花数",m);
}
return 0;
}
标签:aa,判断,return,int,是否是,printf,main,水仙花 From: https://blog.51cto.com/u_16336886/8216361