您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

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

2024/6/25 4:28:31发布12次查看
输出九九乘法表。
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经典编程题--九九乘法表的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product