Java program convert Celsius to Fahrenheit

      No Comments on Java program convert Celsius to Fahrenheit
import java.util.*;
class scan
{
 public static void main(String arg[])
  {
	  float x,y,z;
	   Scanner kb=new Scanner(System.in);
   
   System.out.println("Enter temperature in celsius");
   x=kb.nextFloat();
   y=(x*9)/5;
   z=y+32;
   System.out.println("Temperature in Fahrenheit is: "+z);
  }
}

OUTPUT:-

Leave a Reply

Your email address will not be published. Required fields are marked *