zoukankan      html  css  js  c++  java
  • 作业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;
    }


  • 相关阅读:
    emacs 集成astyle
    git reflog
    rpm 打包的时候 不进行strip
    gmock
    如何对正在运行的进程,进行heap profile
    linux性能压测工具
    默认宏定义
    gdb fabs错误输出
    基于Clang的缓存型C++编译器Zapcc
    grep 多行 正则匹配
  • 原文地址:https://www.cnblogs.com/kally004/p/7504116.html
Copyright © 2011-2022 走看看