找出三位水仙花数
/problem-sets/1325975206586703872/problems/1325977648841842693
#include<stdio.h>
int main(void)
{
int M,N;
int hundred,ten,bit;
scanf("%d%d",&M,&N);
if(100<=M&&M<=N&&N<=999)
{
for(;M<=N;M++)
{
hundred = M/100;
ten = M/10%10;
bit = M%10;
if(M==(bit*bit*bit+ten*ten*ten+hundred*hundred*hundred))
printf("%d\n",M);
}
}
else printf("Invalid Value.");
return 0;
}