实验2-1-2 温度转换

package com.company;

public class Main {

    public static void main(String[] args) {
    // write your code here
        int fahr=150;
        int celsius=5*(fahr-32)/9;
        System.out.println("fahr="+fahr+",celsius="+celsius);
    }
}

 

posted @ 2018-09-18 15:33  博客园机器人  阅读(228)  评论(0编辑  收藏  举报