免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1606 | 回复: 0

打印出希腊字母表 [复制链接]

论坛徽章:
2
操作系统版块每日发帖之星
日期:2015-06-26 22:20:00每日论坛发贴之星
日期:2015-06-26 22:20:00
发表于 2015-07-08 11:16 |显示全部楼层
[Java]代码
  1. package xx.xxx.xxxx;
  2. /**
  3. *   Print GreekAlphabet
  4. * @author Silvers
  5. *  2015-06-18
  6. */
  7. public class GreekAlphabet
  8. {
  9.      public static void main(String[] args)
  10.      {
  11.          System.out.println(" ========希腊字母表    By: _Silvers========");
  12.          System.out.println();
  13.          int i  = 913;   
  14.             for(;i<=937;i++)
  15.              {
  16.             if(i==930)
  17.             System.out.print(" ");
  18.             else
  19.             System.out.print("   " +(char)i +"   ");
  20.              }
  21.             System.out.println();
  22.             System.out.println();
  23.              for(i=945;i<=969;i++)
  24.              {
  25.                 if(i==962)
  26.                 System.out.print("       ");
  27.             else
  28.                 System.out.print("   " +(char)i+"   ");
  29.              }
  30.              System.out.println();
  31.          
  32.        }
  33. }
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP