C语言——while循环数水仙花数
#include
int main()
{
int n;
scanf("%d",&n);
int first=1;
int i=1;
while(ifirst*=10;
i++;
}
i=first;
while(iint t=i;
int sum=0;
do{
int d=t%10;
t/=10;
int j=0;
int sum1=1;
while(jsum1*=d;
j++;
}
sum+=sum1;
}while(t>0);
if(sum==i){
printf("%d\n",i);
}
i++;
}
return 0;
}
『 』
#include
int main()
{
int n;
scanf("%d",&n);
int first=1;
int i=1;
while(i
i++;
}
i=first;
while(i
int sum=0;
do{
int d=t%10;
t/=10;
int j=0;
int sum1=1;
while(j
j++;
}
sum+=sum1;
}while(t>0);
if(sum==i){
printf("%d\n",i);
}
i++;
}
return 0;
}
『 』
If I’m going to do something for you
I would write a poem only about you and me
It’s about how precious you are to me
It’s about how much I am in love with you
For that love is deeper than the ocean
Fierce but calm it is
Hidden as a secret
Cause we don’t need nobody to see
We just do as we like
And we turn the cold wind into hot wave
I might not be the type
Who talks about love all the day
But you should know how I really feel
It might be the way you call me
Or it could be the way you hold me
Me, myself, and I just know it
That you’re stuck in my heart
And it’s going to last forever
If you want to know how I name that poem
Just listen carefully
You should hear me whispering to you
And I said “ I love you”
——— I Love You
#ILOVEYOU#
I would write a poem only about you and me
It’s about how precious you are to me
It’s about how much I am in love with you
For that love is deeper than the ocean
Fierce but calm it is
Hidden as a secret
Cause we don’t need nobody to see
We just do as we like
And we turn the cold wind into hot wave
I might not be the type
Who talks about love all the day
But you should know how I really feel
It might be the way you call me
Or it could be the way you hold me
Me, myself, and I just know it
That you’re stuck in my heart
And it’s going to last forever
If you want to know how I name that poem
Just listen carefully
You should hear me whispering to you
And I said “ I love you”
——— I Love You
#ILOVEYOU#
#June's holiday# & #给朱丽叶的信[电影]#
I don't know what a love like Juliet's feets like, a love to leave loved ones for, a love to cross oceans for, but I'd like to believe, if I ever were to feel it, that I'd have the courage to seize it.
And, Claire, if you didn't, I hope one day that you will.
I don't know what a love like Juliet's feets like, a love to leave loved ones for, a love to cross oceans for, but I'd like to believe, if I ever were to feel it, that I'd have the courage to seize it.
And, Claire, if you didn't, I hope one day that you will.
✋热门推荐