您好,欢迎访问一九零五行业门户网

Java经典编程题--九九乘法表

输出九九乘法表。
public class example16 {
    public static void main(string[] args) {
        table(9);
    }
public static void table(int n) {
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= i; j++) {
                system.out.print(j + * + i + = + j * i+\t);
            }
            system.out.println();
        }
    }
}
以上就是java经典编程题--九九乘法表的详细内容。
其它类似信息

推荐信息