Here is some code that might help you figure it out:
Code:
#include <stdio.h>
int main(void)
{
int num1 = 10,
num2 = 20,
num3 = 110,
num4 = 2250,
num5 = 23,
num6 = 23505,
num7 = 2,
num8 = 102;
printf("%-15d %-15d\n", num1, num2);
printf("%-15d %-15d\n", num3, num4);
printf("%-15d %-15d\n", num5, num6);
printf("%-15d %-15d\n", num7, num8);
return 0;
}
The idea is to think of the maximum number of characters (or spaces) that a number will take up. So let's say the maximum number of characters an input value will be is 5 characters. To make it look nice you might want to add some padding on to that (1 or 2 spaces). Then you code it out:
printf("%-5d %-5d %-5d\n", num1, num2, num3); // 3 columns, 1 space padding
Hope that helps
Hope that helps