摘要: package com.q1u.struct; public class ForDemo03 { public static void main(String[] args) { //练习2:用while或for循环输出1-1000之间能被5整除的数,并且每行输出3个 for (int i = 1; 阅读全文
posted @ 2023-03-27 22:37 Q1uuuu 阅读(88) 评论(0) 推荐(0)
摘要: package com.q1u.struct; public class ForDemo02 { public static void main(String[] args) { //练习1∶计算0到100之间的奇数和偶数的和 int oddsum = 0; int evensum = 0; for 阅读全文
posted @ 2023-03-27 22:36 Q1uuuu 阅读(67) 评论(0) 推荐(0)