首页 > 其他 > 详细

319上机练习

时间:2020-03-19 11:29:38      阅读:40      评论:0      收藏:0      [点我收藏+]
package one;

public class Demo01 {

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

  技术分享图片

package one;

public class Demo01 {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        int a = 456;
        int ge = a%10;
        int shi = a/10%10;
        int bai = a/100%10;
        int total = ge + shi + bai;
        System.out.println(total);
    }
}

技术分享图片

package one;

public class Demo01 {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        int hua = 50;
        int she = (hua - 32)*5/9;
        System.out.println(she);
    }
}

技术分享图片

319上机练习

原文:https://www.cnblogs.com/y18741378909/p/12522700.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!