怎样用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网络教学系统建模一
  • 热门搜索
    青海省旅游 庆阳旅游 安徽旅游地图 洞头旅游攻略 崂山旅游攻略 湖南旅游攻略自助游 陕西旅游出版社 国内旅游攻略 五指山旅游 通辽旅游