I want to know that how can I print numbers from 1 to 10 in a way mentioned below :
1
2
3
4
5
6
7
8
9
10




I'm stuck on following ..
Code:
# include <stdio.h>
# include <conio.h>

main()
{
int a;

clrscr();

for (a=1; a<=10; a++)
{           gotoxy(a,a);
            printf("%d",a);
            printf("\n");                      }

getch();
}