気象観測所は毎日、華氏で表される 5 つの気温を受け取ります。温度を華氏で受け取り、それを摂氏に変換し、変換された温度を画面に表示するプログラムを作成します。5 つの温度の後、「すべての温度が処理されました」というメッセージが画面に表示されます。
私の答えは以下です
#include <stdio.h>
main()
{
int fah, cel;
printf("\nEnter 5 temperatures in Fahrenheit: ");
scanf("%d %d %d %d %d", &fah);
do
{
cel=(fah-32)*(5/9);
printf("\n These temperatures converted to Celsius are: %d \n", cel);
}
while(fah);
}