有人可以帮我理解为什么输出为0吗?
#include <iostream>
using namespace std;
int main() {
float celsius;
float fahrenheit;
cout << "Enter Celsius temperature: ";
cin >> celsius;
fahrenheit = (5/9) * (celsius + 32);
cout << "Fahrenheit = " << fahrenheit << endl;
return 0;
}
阿晨1998
MYYA
qq_花开花谢_0
收到一只叮咚
随时随地看视频慕课网APP
相关分类