public class XiaoHaiNianLing { public static void main(String[] args) { int X = 7; int B = 7; for (int a=0;a<X;a++) { int C = B+a*2; System.out.print("年龄为"+C); } } }
public class XiaoHaiNianLing { public static void main(String[] args) { int X = 7; int B = 7; for (int a=0;a<X;a++) { int C = B+a*2; System.out.print("年龄为"+C); } } }