c program to print numbers from 1 to n using for loop