If not now,when? If not you,who?

JAVA 2017.9.4 杨浩宁作业


public
class Test{ public static void main(String[] args){ int i; for(i = 1;i <= 5;i++){ System.out.println("Welcome to java"); } } }
public class Test{
    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.println(" J  J   A A A    V V   A A A ");
            System.out.println("  J J  A     A    V   A     A ");
    }
}

 

public class Test{
    public static void main(String[] args){
        System.out.println("周长=" + 2 * 5.5 * Math.PI + " !" + "\n" + "面积=" + 5.5 * 5.5 * Math.PI + " !");
        }
}

public class Test {
     public static void main(String[] args) {
     int hour = 1,minute = 40,second = 35;
     System.out.print("时速为:" + (24 * 1.6 * 1000) / (hour * 60 * 60 + minute * 60 + second) + "km/h");
     }
}

 

posted @ 2017-09-11 14:00  HyperYoung  阅读(144)  评论(0编辑  收藏  举报

Copyright © 2017 Hyself Inc.保留所有权利。

商务合作邮箱:hy@hyself.top