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

 时间:2024-10-13 03:02:27

本篇文章给大家介绍一下怎样用java、C语言输出99乘法表。

工具/原料

java环境

C语言软件

java写99乘法表

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乘法表

C语言写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乘法表
  • 饭后什么时候可以练瑜伽
  • sql server怎么导出数据
  • VB设计动画时钟
  • 怎么设置C语言程序开机自启动
  • UML网络教学系统建模一
  • 热门搜索
    着相了是什么意思 发烧时不宜喝什么饮料 首当其冲什么意思 运动项目 ukey是什么 剖腹产后多久可以运动 腊八蒜的腌制方法 hg是什么意思 香港的市花是什么 牛肉饺子馅配什么蔬菜