| functions/temperature-without-abstraction.c - Et program som omregner frysepunkt og kogepunkt til Fahrenheit grader - uden abstraktion. | Lektion 5 - slide 20 : 30 Program 1 |
#include <stdio.h>
int main(void){
printf("Freezing point: %6.2f F.\n",
9.0 / 5.0 * 0 + 32.0);
printf("Boiling point: %6.2f F.\n",
9.0 / 5.0 * 100 + 32.0);
return 0;
}