int main(void)
{
char e;
浮動z;
浮動x;
浮動y;
浮動f;
Printf("在本程序中,q代表吸收或釋放的熱量;\nc代表比熱容;\nT表示降低或升高的溫度;\ n請註意區分大小寫;\ n ");
Printf("請輸入所需數量:");
scanf("%c ",& ampe);
Printf("請按字母順序輸入已知數量:");
scanf("%f%f%f ",& ampx & amp;y & amp;z);
if (e == 'Q ')
{
f = x * y * z;
printf("%f\n ",f);
}
else if (e == 'c ')
{
f = y/(x * z);
printf("%f\n ",f);
}
else if (e == 'm ')
{
f = y/(x * z);
printf("%f\n ",f);
}
else if (e == 'T ')
{
f = z/(x * y);
printf("%f\n ",f);
}
返回0;
}