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()) {
			double F=scanner.nextDouble();
			double s=(F-32)*5/9;
			System.out.printf("%.2f\n",s);
			
		}
	}
}

Double click to view unformatted code.


Back to problem 26