怎样用java、C语言怎样用while打印/写99乘法表

 时间:2026-02-13 11:55:30

1、代码如下:

public class Jiujiu {

public static void main(String[] args) {

int n,m = 1;

while(m <= 9)

{

n=1;

while(n <= m)

{

System.out.print((m+"*"+n)+"="+m*n+" ");

++n;

}

{

++m;

System.out.println();

}

}

}

}

怎样用java、C语言怎样用while打印/写99乘法表

怎样用java、C语言怎样用while打印/写99乘法表

1、C语言的代码如下:

#include "stdio.h"

void main()

{

    int i = 0,o = 0,p;

    while(i < 9)

    {

    i++;

    while(o < i)

    {

    o++;

    printf("%d*%d=%d ",o,i,o*i);

    }

    o=0;

    printf("\n");

    }

}

怎样用java、C语言怎样用while打印/写99乘法表

怎样用java、C语言怎样用while打印/写99乘法表

  • 饭后什么时候可以练瑜伽
  • sql server怎么导出数据
  • VB设计动画时钟
  • 怎么设置C语言程序开机自启动
  • UML网络教学系统建模一
  • 热门搜索
    婴儿贫血怎么办 臭豆腐怎么做的 喝酒过敏怎么办 骑马与砍杀怎么自立 酷狗怎么制作铃声 面包虫怎么繁殖 喝醉了怎么解酒 hcg低怎么办 淘宝怎么注册 手机内存不足怎么清理