摘要:
//1+2!+3!+...+20!的和 public class jiecheng{ public static void main(String args[]) { int i,s=0,a; for(i=1,a=1;i<=20;i++) { a*=i; s+=a; } System.out.pri 阅读全文
posted @ 2017-09-13 20:42
浅笑Cc。
阅读(115)
评论(0)
推荐(0)
摘要:
//水仙花数 public class sxhs {public static void main(String args[]){ int i,g,s,b; for(i=100;i<1000;i++) { b=i/100; s=i%100/10; g=i%10; if( (g*g*g+s*s*s+b 阅读全文
posted @ 2017-09-13 20:36
浅笑Cc。
阅读(109)
评论(0)
推荐(0)
摘要:
public class wendu{public static void main(String args[]){int f;double c;for(f=300;f>=0;f=f-20){c=((double)(5.0/9))*(f-32);System.out.printf(f+"\t");S 阅读全文
posted @ 2017-09-13 20:26
浅笑Cc。
阅读(103)
评论(0)
推荐(0)

浙公网安备 33010602011771号