摄氏温度转华氏温度
package test; import java.util.Scanner; public class ConvertCelsiusToFahrenheit extends ComputeChange { public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner(System.in); System.out.print("Enter a degree in Celsius:"); double Celsius = input.nextDouble(); double Fahrenheit =(9.0/5)*Celsius+32; System.out.println(Celsius + " Celsous is " + Fahrenheit + " Faharenheit"); } }