1129ForForDemo
来源:互联网 发布:婚恋app源码 编辑:程序博客网 时间:2024/05/21 21:48
package java151129;
/*
* 语句嵌套例如class ForTest
*/
public class ForForDemo {
public static void main(String[] args) {
/*
* 打印ok的矩阵
*/
for (int x = 0; x < 3; x++) {
for (int y = 0; y < 4; y++) {
System.out.print("ok"+"\t");
}
System.out.println();
}
System.out.println("-----------------");
/*
* 打印*的倒三角
*/
for (int i = 0; i <5 ; i++) {
for (int j = i; j < 5; j++) {
System.out.print("*");
}
System.out.println();
}
}
}
/*
* 语句嵌套例如class ForTest
*/
public class ForForDemo {
public static void main(String[] args) {
/*
* 打印ok的矩阵
*/
for (int x = 0; x < 3; x++) {
for (int y = 0; y < 4; y++) {
System.out.print("ok"+"\t");
}
System.out.println();
}
System.out.println("-----------------");
/*
* 打印*的倒三角
*/
for (int i = 0; i <5 ; i++) {
for (int j = i; j < 5; j++) {
System.out.print("*");
}
System.out.println();
}
}
}
0 0
- 1129ForForDemo
- ForForDemo
- forforDemo.java
- Day1之ForForDemo
- 1129
- 1129
- 1129
- 1129
- 1129
- 1129
- 1129
- 1129 WSADATA
- 1129: Divisibility
- POJ 1129
- sicily 1129
- HDOJ 1129
- POJ 1129
- poj 1129
- 解决Plugin is too old,please update to a more recent version,or set ANDROID_DAILY_OVERRIDE..
- 【笔记】关于android中shape使用的注意事项
- [PHP]Yii rules常用规则
- 集合操作符
- yii表单验证大全
- 1129ForForDemo
- constraint用法总结 II
- 用指针对结构体操作
- 编码风格不是编码规范
- hdoj1384Intervals【差分约束】
- iOS navigation bar title 换成自定义的图片 swift 版
- 零编程经验的我是如何找到工作的
- Android一些传感器的简介
- 期末考试程序设计题目,求大神指导