显示ACSII码字符表 Exercise05_15

 1 /**
 2  * @author 冰樱梦
 3  * 时间:2018年下半年
 4  * 题目:显示ACSII码字符表
 5  *
 6  */
 7 public class Exercise05_15 {
 8     public static void main(String[] args){
 9         int num=0;
10         for(int i=33;i<=126;i++){
11             System.out.print((char)(i));
12             if(48<=i&&i<57) System.out.print(" ");
13             num++;
14             if(num%10==0) System.out.printf("\n");
15         }
16     }
17 }

 

posted @ 2018-12-25 14:21  CHERRYL  阅读(216)  评论(0编辑  收藏  举报