Computer Science, asked by brothersalpha1, 8 months ago

write a program in java to covert farenheit into celcius(use scanner)​

Answers

Answered by Anonymous
2
  • program output is also shown below.
  1. public class Fahrenheit_Celsius.
  2. double celsius, fahrenheit;
  3. Scanner s = new Scanner(System.
  4. System. out. print("Enter temperature in Fahrenheit:");
  5. fahrenheit = s. nextDouble();
  6. celsius = (fahrenheit-32)*(0.5556);
  7. System. out. println("Temperature in Celsius:"+celsius)
  • HOPE ITS HELPS
Answered by Anonymous
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