[每天一点C语言]根据公式C = (5/9)(F-32)打印华氏温度与摄氏温度对应表

#include 
#include 

int main(){
	int fahr, celsius;
	int step = 20;
	int lower = 0;
	int upper = 300;
	fahr = lower;
	while (fahr <= upper){
		celsius = 5 * (fahr - 32) / 9;
		printf("%d\t %d\n", fahr, celsius);
		fahr += step;
	}
	
	system("PAUSE");	
}

你可能感兴趣的:(c++,c,语言,include,system)