摘要: //0到100中奇数偶数的和package com.huang.boke.flowPath;public class Fordeme { public static void main(String[] args) { int oddSum = 0; int evenSum = 0; for (in 阅读全文
posted @ 2021-02-04 18:28 spking 阅读(109) 评论(0) 推荐(0)
摘要: package com.huang.boke.flowPath;public class While { public static void main(String[] args) { int i=0; int sum=0; while (i<=100){ sum = sum + i; i++; 阅读全文
posted @ 2021-02-04 17:48 spking 阅读(94) 评论(0) 推荐(0)
摘要: //单选package com.huang.boke.flowPath;import java.util.Scanner;public class test02 { public static void main(String[] args) { Scanner scanner = new Scan 阅读全文
posted @ 2021-02-04 16:19 spking 阅读(72) 评论(0) 推荐(0)
摘要: package com.huang.boke.flowPath;import java.util.Scanner;public class test01 { public static void main(String[] args) { //创建扫描器对象,用于接收键盘数据 Scanner sca 阅读全文
posted @ 2021-02-04 16:05 spking 阅读(210) 评论(0) 推荐(0)