class FloatDoubleExer{
public static void main(String[] args) {
//℃=(℉-32)/1.8
double hua=80.0;
double she=(hua-32)/1.8;
System.out.println("华氏度"+hua+"°F所对应的摄氏度为"+she+"°C");
/*
运行结果:
华氏度80.0°F所对应的摄氏度为26.666666666666664°C
Process finished with exit code 0
*/