solutions/The C Programming Language/1.5.c

10 lines
146 B
C

#include <stdio.h>
main()
{
for (int fahr = 300; fahr >= 0; fahr = fahr - 20)
{
printf("%3d %6.1f\n", fahr, (5.0 / 9.0) * (fahr - 32));
}
}