第二次上机作业

public class test1 {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        int a,b,c,n;
        n=345;
        a=n/100;
        b=n%100/10;
        c=n%100%10;
        System.out.println(a+b+c);
                
    }

}

public class test1 {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        double x,y;
        x=36;
        y=x*9/5;
        System.out.println(y);
                
    }

}

public class test1 {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
    double r,s;
          r=2;
          s=3.14*r*r;
        System.out.println(s);
                
    }

}

public class test1 {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        int a=5,b=8,c;
            c=a;
            a=b;
            b=c;
           System.out.println(a);
            System.out.println(b);
                
    }

public class test1 {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        int a=12345,c;
            c=a-45;          
           System.out.println(c);
            
                
    }

}

public class test1 {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        int A=65,a;
        a=A+32;
           System.out.println(a);
            
                
    }

}

posted @ 2021-03-14 19:10  蓝桉亞  阅读(40)  评论(0编辑  收藏  举报