请哪位Java高手帮我看看这些题

[复制链接]
查看11 | 回复2 | 2009-6-24 22:46:42 | 显示全部楼层 |阅读模式
public class Sxhshu { public static void main(String[] args) {for (int i = 100; i < 100000; i++) { if (issxhshu(i))
System.out.print(""+i);} }public static boolean issxhshu(int shu) {int count = 0;String text = Integer.toString(shu);int lenth = text.length(); // 判定是几位数for (int i =...
回复

使用道具 举报

千问 | 2009-6-24 22:46:42 | 显示全部楼层
3.求1000以内所有的水仙花数public class Test{ public static void main (String args[]) {int n=100;while(n<=1000){ int i,j,k; i=n/100; j=(n-i*100)/10; k=n%10...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行