package Day05; public class ForTest04 { public static void main(String[] args) { int sum = 0; for(int a = 1; a<=5;a++){ sum +=a; }System.out.println(+sum); } }
zuoye07
最新推荐文章于 2024-09-30 10:36:33 发布
package Day05; public class ForTest04 { public static void main(String[] args) { int sum = 0; for(int a = 1; a<=5;a++){ sum +=a; }System.out.println(+sum); } }