实验2-1-1 计算摄氏温度

package com.company;

public class Main {

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

 

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