Proxy > Gmail Facebook Yahoo!

26. Write a program to convert the given temperature in Fahrenheit to Celsius using the follwing conversions formula C = ( F – 32 ) / 1.8 and display the values in tabular form




import java.util.*;
public class ConvertTempInC {
 
 
  public static void main(String[] args)
  {
    Scanner scan=new Scanner(System.in);
    System.out.print("Enter Temparature in Fahrenheit  (f):");
    double f=scan.nextDouble();
    double c= ( f - 32 ) / 1.8;
    System.out.println("Tempurature in Celsius ="+c);
  }
 
}


Responses

0 Respones to "26. Write a program to convert the given temperature in Fahrenheit to Celsius using the follwing conversions formula C = ( F – 32 ) / 1.8 and display the values in tabular form"


Send mail to your Friends.  

Expert Feed

 
Return to top of page Copyright © 2011 | My Code Logic Designed by Suneel Kumar