C program to print numbers in ascending order.