1. 首页
  2. 课程学习
  3. C++/C
  4. while循环实现水仙花数

while循环实现水仙花数

上传者: 2020-08-21 00:33:07上传 CBP文件 1.06KB 热度 19次
首先什么是水仙花数? 水仙花数是指一个 3 位数,它的每个位上的数字的 3次幂之和等于它本身(例如:1^3 + 5^3+ 3^3 = 153)。 输入代码: #include #include main() { int a,b,c,n; n = 100; while(n
下载地址
用户评论