All pastes #36417 Raw Edit

Fahrenhait-Celsius

public text v1 · immutable
#36417 ·published 2006-01-11 00:34 UTC
rendered paste body

include <stdio.h>

/* print Fahrenheit-Celsius table */

main()
{
    int fahr;

    for (fahr = 0; fahr <= 300; fahr + 20)
        printf("%3d %6.1f\n", fahr, (5.0/9.0)*(fahr-32));
}