标签:else scanf getchar break print tchar 水仙花 etc printf
#include<stdio.h>
int main()
{
int a, b, c, i;
while (1)
{
scanf("%d", &i);
if (i >= 100 && i<1000)
{
a = i / 100;
b = i / 10 % 10;
c = i % 10;
if (a*a*a + b*b*b + c*c*c == i)
printf("yes\n");
else
printf("no\n");
}
if (i==0)
{
break;
}
}
getchar();
}
标签:else scanf getchar break print tchar 水仙花 etc printf
原文地址:https://www.cnblogs.com/minTTremor/p/9099720.html