package zh.codegym.task.task01.task0130;
/*
我们的第一个转换器!
*/
public class Solution {
public static void main(String[] args) {
System.out.println(convertCelsiusToFahrenheit(41));
}
public static double convertCelsiusToFahrenheit(int celsius) {
double a = 9 / 5.0 * celsius + 32;
System.out.println(a);
//在此编写你的代码
return 0;
}
}
为什么显示两个结果
105.8
0.0
谁能帮我解释一下这段代码
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet