实验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);
    }
}

猜你喜欢

转载自www.cnblogs.com/zhuzehua/p/9669149.html