Write a program that finds the temperature, as an integer , that is the same in both Celsius and Fahrenheit. The formula to convert from Celsius to Fahrenheit is: Fahrenheit = 32 + (nine fifths) times Celsius. Solution Program: Program: import java.util.Scanner; public class JavaApplication { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double celsius, fahrenheit; System.out.print(\"Enter a temperature in Celsius: \"); celsius = sc.nextDouble(); fahrenheit = 32 + (celsius * 9 / 5); System.out.println(celsius +\" ºC = \" + fahrenheit + \" ºF\"); } } .
Write a program that finds the temperature, as an integer , that is the same in both Celsius and Fahrenheit. The formula to convert from Celsius to Fahrenheit is: Fahrenheit = 32 + (nine fifths) times Celsius. Solution Program: Program: import java.util.Scanner; public class JavaApplication { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double celsius, fahrenheit; System.out.print(\"Enter a temperature in Celsius: \"); celsius = sc.nextDouble(); fahrenheit = 32 + (celsius * 9 / 5); System.out.println(celsius +\" ºC = \" + fahrenheit + \" ºF\"); } } .