Paste Search Dynamic
Recent pastes
Fahrenheit Degree
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Main
  9. {
  10.         public static void main (string[] args) throws java.lang.exception
  11.         {
  12.                 Scanner scanner =new Scanner(system.in);
  13.         double c , f;
  14.         c = scanner.nextDouble();
  15.         f = (c*1.8)+32;
  16.         system.out.println("Fahrenheit = " + f + "Degree");
  17.         }
Parsed in 0.014 seconds