2021-08-17 C语言 for 语句

#include <stdio.h>

#define LOWER	0
#define UPPOR	300
#define STET	20

int main(int argc, char const *argv[])
{
	int fahr;
	for (fahr = LOWER; fahr <= UPPOR; fahr += 20)
		{
			printf("%3d %6.1f\n", fahr, (5.0 / 9.0) * (fahr - 32));
		}	
	return 0;
}

猜你喜欢

转载自blog.csdn.net/weiabc/article/details/119767251