Write a Java Program to Convert Celsius to Fahrenheit

By | 07.02.2017

Java Program to Convert Celsius to Fahrenheit

Java Program to convert celsius to Fahrenheit in Java Programming, you have to ask to the user to enter the temperature in celsius to convert it into Fahrenheit to display the equivalent temperature in Fahrenheit as shown in the following program.


import java.util.Scanner;

public class CelsiusToFahrenheit
    public static void main(String args[])
        float cen;
        double fah;
        Scanner scan = new Scanner(System.in);
        System.out.print("Enter Temperature in Celsius : ");
        cen = scan.nextFloat();
        fah = (1.8*cen) + 32;
        System.out.println("Temperature in Fahrenheit = " + fah);




Enter Temperature in Celsius : 32
Temperature in Fahrenheit = 89.6


0 0 votes
Article Rating
Category: Basic Programs Java Programming Tags:

About Tunde A

My name is Tunde Ajetomobi, a Tech Enthusiast and Growth Hacker. I enjoy creating helpful content that solves problem across different topics. Codezclub is my way of helping young aspiring programmers and students to hone their skills and find solutions on fundamental programming languages.

Notify of

Inline Feedbacks
View all comments