zoukankan      html  css  js  c++  java
  • java第一周作业

    package doom;
    
    import java.rmi.server.SocketSecurityException;
    
    public class firsttest {
    
    	public static void main(String[] args) {
    		// TODO Auto-generated method stub
    		int a =1;
    		int b =3;
    		int c =0;
    		c=a;
    		a=b;
    		b=c;
    		System.out.println(a);
    		System.out.println(b);
    
    	}
    
    }
    

      

    package doom;
    
    public class firsttest2 {
    
    	public static void main(String[] args) {
    		// TODO Auto-generated method stub
    		int a = 1000;
    		int ge = a%10;
    		int shi = a/100%10;
    		int bai = a/10%100;
    		int qian = a/1000;
    		int he = ge+shi+bai+qian;
    		System.out.println(ge);
    		System.out.println(shi);
    		System.out.println(bai);
    		System.out.println(qian);
    		System.out.println(he);
    		
    
    	}
    
    }
    

      

    package doom;
    
    public class firsttest3 {
    
    	public static void main(String[] args) {
    		// TODO Auto-generated method stub
    		double a = 95;//华氏温度
    		double b = 36;//摄氏温度
    		double c = (a-32)*5/9;
    		double d = b*9/5+32;
    		System.out.println(c);
    		System.out.println(d);
    
    	}
    
    }
    

      

    package doom;
    
    public class firsttest4 {
    
    	public static void main(String[] args) {
    		// TODO Auto-generated method stub
    		char a = 'A'+32;
    		System.out.println(a);
    
    	}
    
    }
    

      

  • 相关阅读:
    生成函数代替伯努利数
    关于费用流
    GDOI注意事项
    计算几何 学习笔记
    jzoj5370
    图上的游戏
    小学生语文题
    arcane
    P2305 [NOI2014] 购票
    P3512 [POI2010]PIL-Pilots
  • 原文地址:https://www.cnblogs.com/a000/p/12522931.html
Copyright © 2011-2022 走看看