Write a java program to convert temperature from Celsius to Fahrenheit

Write a java program to convert temperature from Celsius to Fahrenheit. The Celsius scale is a measurement of temperature. It’s a measurement of how hot or cold something is.°C is a popular abbreviation. Water freezes at 32°F and boils at 212°F under normal conditions, denoting a temperature scale on which water freezes at 32°F and boils at 100°F.

import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
float cen;
double fah;
Scanner scan = new Scanner(System.in);
System.out.print("Enter Temperature in Cen");
cen = scan.nextFloat();
fah = (1.8*cen) + 32;
System.out.print("Equivalent Temperature is" + fah);
}
}

Output:
Enter Temperature in Centigrade : 45                                                                                          
Equivalent Temperature in Fahrenheit = 113.0