format
This commit is contained in:
1 file changed
+3
-1
@@ -7,8 +7,10 @@ int main(){
|
|||||||
|
|
||||||
int fahr, cel;
|
int fahr, cel;
|
||||||
|
|
||||||
|
printf("%s\t%s\n", "°F", "°C");
|
||||||
|
printf("%s\t%s\n", "===", "===");
|
||||||
for(fahr=lowerF; fahr<=upperF; fahr+=step){
|
for(fahr=lowerF; fahr<=upperF; fahr+=step){
|
||||||
cel = 5 * (fahr - 32) / 9;
|
cel = 5 * (fahr - 32) / 9;
|
||||||
printf("%d\t%d\n", fahr, cel);
|
printf("%3d\t%3d\n", fahr, cel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user