哪位大佬给看看呗,急急急
#include <stdio.h>
int narcissistic( int number );
void PrintN( int m, int n );
int main()
{
int m, n;
scanf("%d %d", &m, &n);
if ( narcissistic(m) ) printf("%d is a narcissistic number\n", m);
PrintN(m, n);
if ( narcissistic(n) ) printf("%d is a narcissistic number\n", n);
return 0;
}
int narcissistic (int number)
{
int i,j,k;
for (number=100;number<10000;number++)
{
i=number/100;
j=number%100/10;
k=number%10;
}
if (number==i*i*i+j*j*j+k*k*k)
return 1;
else
return 0;
}
void PrintN(int m,int n)
{
int i;
for (i=m;i<=n;i++)
{
if(narcissistic(i)==1)
printf("%d\n",i);
}
}