package pro;
import java.util.Scanner;
/**
* Name: WHY
*
* @date:2023/9/26
*/
public class pro03 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
double fahrenheit;
System.out.println("请输入华氏温度:");
fahrenheit = input.nextDouble();
double celsivs = (5.0/9)*(fahrenheit-32);
System.out.println("华氏温度:"+fahrenheit);
System.out.println("摄氏温度:"+celsivs);
System.out.println("摄氏温度:"+String.format("%.2f",celsivs));
//String.format("%.2f") 保留小数点后两位
}
}