华氏度转摄氏度计算器:快速在线转换工具
import java.util.Scanner;
public class FahrenheitToCelsius {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print('请输入华氏度:');
double fahrenheit = sc.nextDouble();
double celsius = (fahrenheit - 32) * 5 / 9;
System.out.printf('摄氏度为:%.2f', celsius);
}
}
原文地址: https://www.cveoy.top/t/topic/oYZ3 著作权归作者所有。请勿转载和采集!