Q1. Print table from 1 to 10 using gotoxy.

#include<stdio.h>
#include<conio.h>
void main()
{
    int i,n,r;
    for(n=1;n<=10;n++)
    {
        for(i=1;i<=10;i++)
        {
            r=n*i;
            gotoxy(n*5,i);
            printf("%d",r);
        }
        gotoxy(1+i*2,1);
        getch();
    }
    getch();
}