题解 | #温度转换#
温度转换
http://www.nowcoder.com/practice/ba83647087b7447783fa2384da6b3d44
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); double num = scanner.nextDouble(); System.out.printf("%.3f", (num - 32.0) * 5.0 / 9.0); } }