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"); } }