自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 输出全部的希腊字母

public class Test3{ public static void main(String args[]) { char a,b; a='α';b='ω'; System.out.println("希腊字母表"); for(;a<=b;a++) { System.out.println(a+"

2017-10-29 15:00:22 2064

原创 求1!+2!。。。。。。+10!

public class Test4{ public static void main(String args[]) { int i;int s=1; for(i=1;i<=10;i++) { s=i*s; } System.out.println("s="+s); } }

2017-10-29 14:59:35 252

原创 第三章 求100以内的所有完数

public class Test7{ public static void main(String args[]) { int s=0; int i,j; for(i=1;i<=1000;i++) { for(j=1,s=0;j<i;j++) { if(i%j==0) s=s+j; } if(s==i) System

2017-10-29 14:58:47 4858

原创 第三章 求1!+1/2!+1/3!+1/4!+....的前20项和

public class Test6{ public static void main(String args[]) { double s=0,a=1,i=1; do{s=s+a; i++; a=(1.0/i)*a; } while(i<=20); System.out.printl

2017-10-29 14:58:06 436

原创 第三章 1+2+..+n<8888的最大整数n

public class Test9{ public static void main(String args[]) { int n=1; long s=0; System.out.println("1+2+3.....+n<8888的最大正整数n:"); while(true) { s=s+n; n++

2017-10-29 14:54:31 537

原创 Hello world

代碼: public class Test{ public static void main(String[] args){ system.out.println("Hello World"); } } 運行圖:

2017-09-21 20:10:55 147

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除