K&R Exercises

Exercise 1-3: Temperature table with a heading

Modify the temperature conversion program to print a heading above the table.

Print the heading Fahr Celsius on its own line above the table.

#include <stdio.h>

/* print Fahrenheit-Celsius table
   for fahr = 0, 20, ..., 300; floating-point version */
int main()
{
  /* your code goes here */

  return 0;
}

Test Cases

· space→ tab↵ newline

Submissions

No submissions yet