搜索资源列表
shuixian
- 题目:打印出所有的“水仙花数”,所谓“水仙花数”是指一个三位数,其各位数字立方和等于该 数本身。例如:153是一个“水仙花数”,因为153=1的三次方+5的三次方+3的三次方。 分析:利用for循环控制100-999个数,每个数分解出个位,十位,百位。*/-Topic: print out all of the Narcissus few , the so-called Narcissus few refers to a three-digit, its Members and eq
ch03
- 打印出所有的1-1000之间所有的“水仙花数”,所谓“水仙花数”是指一个三位数,其各位数字立方和等于该数本身。例如:153-Between all of the 1-1000 print all of the " Narcissus number" , the so-called " Narcissistic number" refers to a three-digit, the number of its Members and equal to the n