// fahrenhit to centigrade
import java.io.*;
class ssvfc
{
public static void main(String arg[]) throws IOException
{
String s1;
double t1,t2;
DataInputStream dr = new DataInputStream(System.in);
System.out.println("\nEnter the centigrade in temperature : ");
s1 = dr.readLine();
t1 = Double.parseDouble(s1);
t2 = (t1 -32)/1.8;
System.out.println("\nThe temperature in farenhit is : " +t2);
}
}Java
Calculate Fahrenheit To Centigrade Using Java

Written by
View ProfileSenthilvelan Sambamoorthy
Senthilvelan Sambamoorthy is working as a Professor in Department of Master of Computer Applications, Paavai Engineering College, Namakkal, Tamilnadu, India, He is Masters in Computers Applications. Having 18+ years of experience and his area of interest is Java, JSP, Servlet, J2EE, C#, PHP, Python ASP.NET, SQL Server and etc.
