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 i=scan.nextInt();
         double j=(i-32)*5/9.0;
          System.out.println(String.format("%.2f",j));
        }
      }
    }

Double click to view unformatted code.


Back to problem 26