水仙花数
来源:互联网 发布:sql limit offset 编辑:程序博客网 时间:2024/04/26 06:36
[code=Java][/code]
public class StaticClass{
//static int j;
public static void main(String args[]) {
int j=0;
for(int i=100;i<1000;i++) {
int a=i/100;
int b=(i-a*100)/10;
int c=i-a*100-b*10;
if(i==a*a*a+b*b*b+c*c*c) {
j=j+1;
System.out.println("第"+j+"个水仙花数为:"+i);
}
}
}
}
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- Materials features: glass bottles
- 注意食品安全!饭店厨子自揭饭店暴黑幕!
- netsh命令
- 可以下载solidworks2007 完整版的连接
- 点画法和像素处理
- 水仙花数
- tomcat远程debug设置
- Mp3原理及文件格式解析
- C指针【转】
- 百钱百鸡
- tomcat里web.xml中load-on-startup参数含义
- Bridge 模式
- 猴子吃桃?
- Introduce yourself