write a program in java to covert farenheit into celcius(use scanner)
Answers
Answered by
2
- program output is also shown below.
- 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)
- HOPE ITS HELPS
Answered by
2
Answer:
- Java Program to Convert Fahrenheit into Celsius
- 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);
- plz follow me and thank my answers ❤❤❤
Similar questions