Email: Password:       Forgot Password 
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.

Change Fahrenheit To Centigrade

Viewed:  1861 
Posted On:  24/07/2013 03:40:11 
Hi all,With the help of this article i am going to tell you that how we can change the temprature from fahrenheit to centigrade java 


Below is my code:

import java.util.Scanner;
class temprature
public static void main(String s[])
int a,b;
System.out.println("enter temprature in Fahrenheit ");
Scanner scan=new Scanner(;
System.out.println("you entered temprature ="+a);
System.out.println("temprature in centigrate ="+b);

  Step 1:
  After writing this in notepad save the file with the name followed by (.java) for eg.I saved it with
 Step 2 : 
Open command prompt 

 Step 3 : 
Write javac - Press Enter for compilation

 Step 4 : 
Write java temprature for execution


Change Temp.png

         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us