當前位置:編程學習大全網 - 網站源碼 - 查看壹個小程序的源數據。

查看壹個小程序的源數據。

# include & ltstdio.h & gt

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;

}

  • 上一篇:弱弱問壹下,經營小說收藏站違法嗎?
  • 下一篇:潛龍飛天索引源代碼
  • copyright 2024編程學習大全網