代码是:
#include <stdio.h>
#include <stdlib.h>
int main() {
double C, F;
printf("Enter the temperature in Celisius: ");
scanf("%f", &C);
F = 32 + (C * (180.0 / 100.0));
printf("%f C = %f F\n", C, F);
system("pause");
return 0;
}
输出是:
输入Celisius的温度:100
-925596049101779740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000来