import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner s=new Scanner(System.in); System.out.println("请输入华氏温度:"); int F=s.nextInt(); double Cd=(F-32)/9*5D; int C=(int)Cd; System.out.println("摄氏温度:"); System.out.println(C); } }本回答被提问者采纳