摄氏温度转华氏温度

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");
	}

}

  

posted @ 2019-03-08 20:49  殇之弑梦  阅读(201)  评论(0编辑  收藏  举报