pp8.3 column
来源:互联网 发布:shake it是什么意思 编辑:程序博客网 时间:2024/06/06 23:54
package qsy;
import java.util.Scanner;
public class column {
public static void main(String[] args) {
String choose = "y";
Scanner scan = new Scanner(System.in);
String[] column = new String[10];
for (int index = 0; index < column.length; index++)
column[index] = "";
while (choose.equalsIgnoreCase("y")) {
System.out.print("请输入一个1-100的数:");
int num = scan.nextInt();scan.nextLine();
if (0<num&&num<101)
column[num / 10] += "*";
else
System.out.print("请重新输入");
System.out.print("是否继续输入数字?(y/n)");
choose = scan.nextLine();
}
scan.close();
for (int row = 0; row < 10; row++) {
System.out.print((row*10+1)+"-"+(row*10+10)+"|");
System.out.println(column[row] + "\t");
}
}
}
- pp8.3 column
- CPP_Basic_Code_P8.1-PP8.8.7
- @Column
- @Column
- @Column
- @Column
- @Column
- @Column
- @Column
- @Column
- column
- @Column
- @Column
- rails migration-sql column mapping (rails 3)
- C column of Pointer <3> malloc() free()
- ExtJs2.0学习系列(3)--区域布局之column布局
- C-Store: A Column-oriented DBMS(3)
- error on line 3 at column 8: Encoding error
- Oracle ASH内存强制Flush日志解决一例
- .Net线程问题解答
- 在一起久了,两个人的性格会逐渐互补
- JPush极光推送自己集成服务端jar包
- C 语言程序设计实践 4.7 简单的运算Ⅱ
- pp8.3 column
- 使用jdk自带的derby数据库
- 主线程(UI线程)
- UVa 10534. Wavio Sequence
- C 语言程序设计实践 4.8 三角形和圆
- HDU1717循环小数化成分数
- Ajax加载外部页面的一个弹出层效果
- T02Scanner
- 我爱你们