View Code of Problem 26

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.


Back to problem 26