java判断是否为水仙花数
摘要:判断一个整数,是否为水仙花数,指的是一个三位数,其各位上数字立方和等于其本身。例如153 = 1*1*1+3*3*3+5*5*5 //方法1 使用String字符串获取每个位置上的数值 while(true){ System.out.println("请输入一个三位数整数"); rawNum = s
阅读全文
posted @ 2021-11-29 19:27
posted @ 2021-11-29 19:27
posted @ 2021-11-29 12:17
posted @ 2021-11-26 11:11
posted @ 2021-11-21 20:55