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

 时间:2026-04-22 08:08:28

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网络教学系统建模一
  • 热门搜索
    怎么把几张照片拼在一起 眼睛红肿是怎么回事 淘米水洗脸的正确方法 宫商角徵羽怎么读 停牌的股票怎么办 生菜怎么做好吃 家常汤的100种做法 带鱼怎么做好吃 云飞的歌曲大全 香椿芽的储存方法