create an application in java to convert celcius in Fahrenheit
myra9148:
say
Answers
Answered by
2
public class Fahrenheit_Celsius.
{
double celsius, fahrenheit;
Scanner s = new Scanner(System.
System. out. print("Enter temperature in Fahrenheit:");
fahrenheit = s. nextDouble();
celsius = (fahrenheit-32)*(0.5556);
System. out. println("Temperature in Celsius:"+celsius);
Answered by
0
Answer:
import java.io.*;
public class celsiustofahren
{
public static void main(String[] args) throws IOException
{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
System.out.println("Enter celsius");
int c=Integer.parseInt(br.readLine());
double f=c*(9/5)+32;
System.out.println("Fahrenheit is = "+f);
}
}
Answered by M.Mithul Pranav
Hope it helps
Similar questions