package jaz;
public class flowers { public static void main(String[] args) { for(int i = 100; i<1000; i++) { int a = i%10; int b = (i/10)%10; int c = (i/100)%10; if(Math.pow(a, 3)+ Math.pow(b, 3)+Math.pow(c, 3)==i) { System.out.println(“水仙花数”+i); //if(aaa+bbb+ccc == i) { //System.out.println(“水仙花数”+i); } } }}
![](https://csdnimg.cn/release/blogv2/dist/components/img/blogType.png)
HTML5代码
02-27
186
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
![](https://csdnimg.cn/release/blogv2/dist/components/img/blogType.png)
html代码
02-22
146
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
![](https://csdnimg.cn/release/blogv2/dist/components/img/blogType.png)
Python
02-13
305
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
02-07
695
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-25
120
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
![](https://csdnimg.cn/release/blogv2/dist/components/img/blogType.png)
祝大家万事如意,虎年大吉
01-21
117
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)