/*使用函数实现温度转换计算*/#include<stdio.h>float WD(float a);int main() { float i; for (i = 0; i <= 300; i = i + 20) { printf("%-6.0f\t %-6.1f\n", i, WD(i)); } return 0;}float WD(float m){ float b; b = (5.0 / 9.0) * (m - 32); return b;}