本帖最后由 唐侠君 于 2013-12-10 22:22 编辑
package com.itheima;
public class Test5 {
public static void main(String args[]){
for(int x=1;x<=9;x++){
for(int y=1;y<=x;y++){
System.out.print(y+'*'+x+'='+y*x+'\t');
}
System.out.println();
}
}
}
运行结果:
115
117120
119123127
121126131136
123129135141147
125132139146153160
127135143151159167175
129138147156165174183192
131141151161171181191201211
|