|
#include <stdio.h>
#include <stdlib.h>
int main()
{int fahr, celsius;
int lower, upper,step;
lower =0;
upper=300;
sted=20; /*此处的sted应更正为step*/
fahr=lower;
while{fahr<=upper} {celsius-5*(fahr-32)/9; /*while{fahr<=upper},此处的一对{}应更正为()*/
printf("%d\t%d\n",fahr,celsius);
fahr=fahr+step;}
system("pause");
return 0;
} |
|