Answers for "Write a java program to convert temperature from Celsius to Fahrenheit"

0

Write a java program to convert temperature from Celsius to Fahrenheit

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);
}
}
Posted by: Guest on June-19-2021

Code answers related to "Write a java program to convert temperature from Celsius to Fahrenheit"

Browse Popular Code Answers by Language