Added tutorial 3-5. Converts int to string of chars with alt base.
[C-Programming-Examples.git] / ex_1-15.c
blob5aba0daeb98061716cd1f0ba8202dd42901ac360
1 #include <stdio.h>
3 int temp_conv(int c);
5 main()
8 int i;
10 for(i = 0 ; i < 300; ++i)
11 printf("%d -> %d\n", i, temp_conv(i));
12 return 0;
15 int temp_conv(int c)
17 int answer = 5 * (c-32) / 9;
18 return answer;