Exercise02_01

 1 import java.util.Scanner;
 2 public class Out {
 3     public static void main(String[] args){
 4         Scanner input = new Scanner(System.in);
 5         System.out.println("Enter a degree in Celsius:");
 6         double celsius = input.nextDouble();
 7         double farhrenheit = (9.0/5)*celsius+32;
 8         System.out.println(celsius + "Celsius is " + farhrenheit + "farhrenheit");
 9     }
10 }

 

posted @ 2018-10-16 21:07  CHERRYL  阅读(181)  评论(0编辑  收藏  举报