You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
温度转换程序(Java版)
功能
实现摄氏温度与华氏温度的相互转换,输入格式:温度值 + 空格 + 单位(C/F),例如 36.6 C。
编译与运行命令
- 编译:
javac TemperatureConverter.java
- 运行:
java TemperatureConverter
示例输出