write a program in Java to accept temperature in degree celsius and connect into Fahrenheit
Answers
Answered by
2
Answer:
import java.util.Scanner;
public class temperature
{
public static void main (String args[])
{
float Fahrenheit, Celsius;
Scanner myScanner = new Scanner(System.in);
Celsius= myScanner.nextFloat();
Fahrenheit =((Celsius*9)/5)+32;
System.out.println("Temperature in Fahrenheit is: "+Fahrenheit);
}}
Explanation:
Similar questions