题目链接
示例代码
import java.util.Scanner; public class L1_004 { public static void main(String[] args) { int f = 0; Scanner sc = new Scanner(System.in); String input = sc.nextLine(); sc.close(); f = Integer.parseInt(input); System.out.println("Celsius = " + 5*(f-32)/9); } }