1
0
mirror of https://github.com/krislamo/knrc.git synced 2024-11-10 00:30:35 +00:00

Exercise 1-3. print a heading above the table

This commit is contained in:
Kris Lamoureux 2021-11-03 02:34:51 -04:00
parent 8ba629852e
commit 0893987235
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -5,6 +5,7 @@ int main()
{
int fahr;
printf("Fahrenheit\tCelsius\n=======================\n");
for (fahr = 0; fahr <= 300; fahr = fahr + 20)
printf("%3d %6.1f\n", fahr, (5.0/9.0)*(fahr-32));
printf("%3d\t\t%7.1f\n", fahr, (5.0/9.0)*(fahr-32));
}