class jiujiu { //打印99乘法表 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"+x+"="+x*y+"\t"); } System.out.println(); } } }
时间: 2024-10-06 21:28:50
class jiujiu { //打印99乘法表 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"+x+"="+x*y+"\t"); } System.out.println(); } } }