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