|
|
|
@ -1,10 +1,11 @@ |
|
|
|
import java.util.Scanner; |
|
|
|
public class Temperature{ |
|
|
|
public static void main(String[]args){ |
|
|
|
Scanner sc=new Scanner(System.in); |
|
|
|
System.out.println("1.华氏度转摄氏度"); |
|
|
|
System.out.println("2.摄氏度转华氏度"); |
|
|
|
System.out.println("请选择1/2"); |
|
|
|
int chioce=sc.nextlnt(); |
|
|
|
int choice=sc.nextInt(); |
|
|
|
if (choice==1){ |
|
|
|
System.out.print("请输入温度:"); |
|
|
|
double c=sc.nextDouble(); |
|
|
|
|