java----实现小九九

来源:互联网 发布:mysql默认字符集 编辑:程序博客网 时间:2024/04/27 07:12
class MulShow {public static void main(String[] args) {int i,j;for (i = 1; i <= 9; i++){for (j = 1; j <= i; j++){System.out.print(j+"X"+i+"="+i*j+'\t');}System.out.println();}}}