摘要:
package www.nihao; import java.util.Scanner; public class demo02 { public static void main(String[] args) { //main方法 Scanner scanner = new Scanner(Sys 阅读全文
posted @ 2022-04-26 23:36
回忆也交给时间
阅读(56)
评论(0)
推荐(0)
摘要:
package www.nihao; public class demo01 { public static void main(String[] args) { //打印三角形 5行 for(int i=1; i<=5;i++) { for (int j=5;j>=i;j--){ System.o 阅读全文
posted @ 2022-04-26 23:00
回忆也交给时间
阅读(29)
评论(0)
推荐(0)
摘要:
package study5ran2yl.study; public class ForDemo02 { public static void main(String[] args) { int[] number={1,2,3,4,5}; //java定义了一个数组 for (int i = 0; 阅读全文
posted @ 2022-04-26 19:01
回忆也交给时间
阅读(16)
评论(0)
推荐(0)
摘要:
package study5ran2yl.study; public class ForDemo01 { public static void main(String[] args) { int h; int l; for(h=1;h<10;h++) { for(l=1;l<=h;l++){ Sys 阅读全文
posted @ 2022-04-26 13:12
回忆也交给时间
阅读(38)
评论(0)
推荐(0)
摘要:
package study5ran2yl.study; public class deno14 { public static void main(String[] args) { //计算1+2+...+100 int x = 1; int sum = 0; while(x<=100) { sum 阅读全文
posted @ 2022-04-26 12:46
回忆也交给时间
阅读(17)
评论(0)
推荐(0)

浙公网安备 33010602011771号