Program to input temperature in Fahrenheit and convert it into degree Celsius and print it JAVA


Write a Program to input temperature in Fahrenheit and convert it into degree Celsius and print it .




import java.util.*;
class temperature 
{
    public static void main(String[] args) 
    {
        float c,f;
        Scanner sc=new Scanner(System.in);
        System.out.println("Enter Fahrenhiet=");
        f=sc.nextFloat();
        c=((f-32)*5)/9;
        System.out.println("Celcius="+c);
    }
}


     
                     

Contact Us

REACH US

SERVICES

  • CODING
  • ON-LINE PREPARATION
  • JAVA & PYTHON

ADDRESS

B-54, Krishna Bhawan, Parag Narain Road, Near Butler Palace Colony Lucknow
Contact:+ 919839520987
Email:info@alexsir.com