How to print vertically in C?
问题 I have to printfs in a loop an I want to print the output in two lines, instead of intermingled on one line. Like this: printf("| %-7.2f ", Fahrenheit); which produces: | -508.00 | -463.00 | -418.00 | -373.00 | -328.00 | -283.00 | When I add printf("| %-6d", Celsius); under the printf above, it prints right next to/in the middle of my first printf. I want the output to be like: | -508.00 | -463.00 | -418.00 | -373.00 | -328.00 | -283.00 | | -300 | -275 | -250 | -225 | -200 | -175 | -150 |