二楼源码奉上,刚练手的。。。 import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc0=new Scanner(System.in); int HuashiTem=sc0.nextInt(); int SheshiTem=(int)(5/9*(HuashiTem-32)); System.out.println(SheshiTem); sc0.close(); }