View Code of Problem 26

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner=new Scanner(System.in);
		while(scanner.hasNext()) {
			int c=scanner.nextInt();
			System.out.printf("%.2f\n",5*1.0/9*(c-32));
		}
	}

}

Double click to view unformatted code.


Back to problem 26