import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while(scanner.hasNext()) { int f = scanner.nextInt(); double d = 5.0 / 9 * (f - 32); System.out.printf("%.2f\n",d); } } } |
Double click to view unformatted code.