View Code of Problem 26

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

Double click to view unformatted code.


Back to problem 26