作业1 三次作业

1.2

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.println("J   J  AAAAAA   V V    AAAAA");
      System.out.println(" J J  A      A   V    A     A");
           }
}

1.8 

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        System.out.print("半径为5.5");
        int r = sc.nextInt();
        sc.close();
        double s = Math.PI * 5.5 * r;
        double c = Math.PI * 5.5 * 2;
        System.out.println("圆的面积:" + s + ",圆的周长:" + c);
    }
}

1.12

	public double getAvg(double time,double len){

double hour = time/60;
double _len = len/1.6;
double avg = _len/hour;
return avg;
}


原文地址:https://www.cnblogs.com/kally004/p/7504116.html