1 #include<stdio.h> 2 int main() 3 { 4 int fahr; 5 for (fahr = 0; fahr<= 300; fahr=fahr+20) 6 { 7 printf("%3d %6.1f\n", fahr, (5.0 / 9.0)*(fahr - 32.0)); 8 } 9 return 0; 10 }
时间: 2024-10-15 09:53:47
1 #include<stdio.h> 2 int main() 3 { 4 int fahr; 5 for (fahr = 0; fahr<= 300; fahr=fahr+20) 6 { 7 printf("%3d %6.1f\n", fahr, (5.0 / 9.0)*(fahr - 32.0)); 8 } 9 return 0; 10 }