/* Celsius.c (c) Kari Laitinen http://www.naturalprogramming.com/ 2013-11-22 File created. 2013-11-22 Last modification. */ #include int main() { int array_of_degrees_fahrenheit[] = { 32, 34, 36, 37, 39, 41, 43, 45, 46, 48, 50, 52, 54, 55, 57, 59, 61, 63, 64, 66, 68, 70, 72, 73, 75, 77, 79, 81, 82, 84, 86, 88, 90, 91, 93, 95, 97, 99, 100, 102 } ; int degrees_celsius ; printf( "\n This program converts temperatures given in" "\n degrees Celsius to degrees Fahrenheit." "\n Please, give a temperature in degrees Celsius: " ) ; scanf( "%d", °rees_celsius ) ; printf( "\n %d degrees Celsius is %d degrees Fahrenheit. \n", degrees_celsius, array_of_degrees_fahrenheit[ degrees_celsius ] ) ; }