面向对象程序设计第二周作业

public class testhello {

    /**
     * @param args
     */
    public static void main(String[] args) {
        int R=5;
        System.out.println(R*R*3.14);

        

    }

}

public class testhello {

    /**
     * @param args
     */
    public static void main(String[] args) {
        int f=60;
        System.out.println((f-32)*5/9);
        double c=15.555555;
        System.out.println(c*9/5+32);

        

    }

}

public class testhello {

    /**
     * @param args
     */
    public static void main(String[] args) {
        int a=5,b=8,x;
        x=a;
        a=b;
        b=x;
        System.out.println(a);
        System.out.println(b);

        

    }

}

public class testhello {

    /**
     * @param args
     */
    public static void main(String[] args) {
        int a=12345;
        System.out.println(a/100*100);

        

    }

}

public class testhello {

    /**
     * @param args
     */
    public static void main(String[] args) {
        int x,y,z,a=135;
        x=a/100;
        y=a/100%10;
        z=a%10;
        System.out.println(x+y+z);

        

    }

}

public class testhello {

    /**
     * @param args
     */
    public static void main(String[] args) {
        char ch='A';
        System.out.println((char)(ch+32));
        char x='a';
        System.out.println((char)(x-32));

    }

}

posted on 2021-03-12 11:29  我裂开  阅读(37)  评论(0编辑  收藏  举报

导航