#include<iostream>
using namespace std;

int main()
{
    int c=37;
    float f;
    f=c*9/5+32;//整数除法,不保留小数
    cout<<f<<endl;
    float F;
    F=c*9/5.0+32;//除法只有有一边有小数 就为浮点除法 保留小数
    cout<<F<<endl;
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: