标签:
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); } } }
初学JAVA——代码练习(小孩年龄)
原文地址:http://www.cnblogs.com/zhaoxifei/p/5024495.html