JAVA基礎程序練習題2

public class Test_1000之內的水仙花數 { public static void main(String[] args) { for(int i = 100; i < 1000 ; i++){ int a = i%10;//個位 int b = i%100/10;//十位 int c = i/100;//百位 int sum = (a*a*a)
相關文章
相關標籤/搜索