View Code of Problem 26

import java.util.Scanner;
public class Main {
	public static void main(String []args){
	
		Scanner s=new Scanner(System.in);
		while(s.hasNext())	{
		int F=s.nextInt();
		double C=5/9*(F-32);
		System.out.println(String.format("%.2f", C));
		}
	}
}

Double click to view unformatted code.


Back to problem 26