09 2017 档案

摘要://程序员:王智霞 //1、输出一个长整型的变量 public class Long{ public static void main(String[] args) { long l=123456789012345l;//java中默认类型为Int型,电脑想要识别长整型需加l(或L) System. 阅读全文

posted @ 2017-09-25 09:17 老张的小迷妹儿 阅读(136) 评论(0) 推荐(0)

摘要:import java.util.Scanner;public class NumberSum{ public static void main(String[] args) { int a,b,c,sum=0; Scanner input =new Scanner(System.in); Syst 阅读全文

posted @ 2017-09-18 12:20 老张的小迷妹儿 阅读(163) 评论(0) 推荐(0)

摘要:import java.util.Scanner; public class Distance { public static void main(String[] args) { double a; Scanner input =new Scanner(System.in); System.out 阅读全文

posted @ 2017-09-18 12:19 老张的小迷妹儿 阅读(225) 评论(0) 推荐(0)

摘要:public class Kilometer{ public static void main(String[] args) { System.out.println("平均速度为: "+(24*1.6)/(1+40/60+35/3600)); }} 阅读全文

posted @ 2017-09-10 20:17 老张的小迷妹儿 阅读(83) 评论(0) 推荐(0)

摘要:public class Figure{ public static void main(String[] args) { System.out.println(" J A V V A"); System.out.println(" J A A V V A A"); System.out.print 阅读全文

posted @ 2017-09-10 19:56 老张的小迷妹儿 阅读(89) 评论(0) 推荐(0)

摘要:public class Area{ public static void main(String[] args) { double radius=5.5; double area,circle; circle=2*Math.PI*radius; area=radius*radius*Math.PI 阅读全文

posted @ 2017-09-10 19:49 老张的小迷妹儿 阅读(176) 评论(2) 推荐(0)

导航