diff --git a/chapter01/fahceltable.c b/chapter01/fahceltable.c index 8fd4a63..6378aa2 100644 --- a/chapter01/fahceltable.c +++ b/chapter01/fahceltable.c @@ -7,8 +7,10 @@ int main(){ int fahr, cel; + printf("%s\t%s\n", "°F", "°C"); + printf("%s\t%s\n", "===", "==="); for(fahr=lowerF; fahr<=upperF; fahr+=step){ cel = 5 * (fahr - 32) / 9; - printf("%d\t%d\n", fahr, cel); + printf("%3d\t%3d\n", fahr, cel); } }