📌  相关文章
📜  将华氏温度转换为摄氏度 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:07.832000             🧑  作者: Mango

代码示例1
import java.util.Scanner;

public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int far = sc.nextInt();
        int cel = (far - 32) * 5/9;
        System.out.printf("%d Fahrenheit is %d Celsius", far, cel);
    }
}