A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Program to convert the temperature from Celsius to Fahrenheit

import java.util.Scanner ;
class temp
{
    public static void main(String[] args)
    {
        double celsius,far ;
        System.out.println("To convert the temperature from Celsius to Fahrenheit") ;
        System.out.print("Enter The Temperature In Celsius: ");
        Scanner s=new Scanner(System.in);
        celsius=s.nextDouble();
        far=(celsius*(9/5))+32 ;
        System.out.println("The Temperature In Fahrenheit is: "+far);
    }
}


LEARN TUTORIALS

.

.