for循环打印乘法口诀
来源:互联网 发布:淘宝追加评价怎么删除 编辑:程序博客网 时间:2024/04/29 21:36
/*
\n:回车
\t:制表符
\b:退格
\r:按下回车键转译字符,对 \ 后面的字符进行编译
\:
乘法口诀
*/
class ifDemo
{
public static void main(String[] args)
{
for(int x=1;x<=9;x++)
{
for(int y =1;y<=x;y++)
{
System.out.print(y + "*" + x + "=" + y*x + " ");
}
System.out.print("\n");
System.out.println("\"hello word\"");
}
}
}
//编译一个 倒三角的 等腰 星号
class ifDemo
{
public static void main(String[] args)
{
for(int x=1;x<=4;x++)
{
for(int y=1; y<=x;y++)
{
System.out.print(" ");
}
for(int z=x; z<=4; z++)
{
System.out.print("*" + " ");
}
System.out.print("\n");
}
}
}
- for循环打印乘法口诀
- 打印99乘法口诀 一个for循环
- 用一个for循环实现打印乘法口诀表
- 一个循环、一个变量打印乘法口诀
- 从打印乘法口诀表走进循环
- for循环——乘法口诀表
- 利用for循环输出乘法口诀表
- java 利用for循环打印九九乘法口诀
- 乘法口诀打印
- 乘法口诀打印
- 乘法口诀打印
- Python打印乘法口诀
- 打印一个乘法口诀
- 打印乘法口诀表
- 打印乘法口诀表
- 打印乘法口诀表
- 打印乘法口诀表
- 乘法口诀打印
- 数据库之ADO.NET基础知识整理
- 浅谈玩蛇的姿势(Python入门)
- 面向对象 VS 面向过程编程
- LeetCode 389. Find the Difference
- 数据库基础与SQL语言基础知识整理
- for循环打印乘法口诀
- Multi-threaded design patterns -- Single Threaded Execution
- Emacs Configuration
- 数据结构实验之链表八:Farey序列
- 解题报告:Codeforces Round #371 (Div. 2) A~E
- 【OpenCV学习笔记 007】使用直方图统计像素
- ThinkPHP上传根目录不存在!请尝试手动创建:./Uploads/
- 幽灵按钮,用css特效做的一种很炫酷的按钮。
- LinkedHashSet与TreeSet