#include
#include
#include
void gotoxy(int x, int y)
{
COORD coord = {x,y};
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}
int main()
{
int i,j,x,y;
//clrscr();
system("cls");
printf("\n\n ***Pithy Formula Table of Multiplication ***\n\n");
x=9;
y=5;
for(i=1;i<=9;i++)
{
gotoxy(x,y);
printf("-",i);
x+=8;
}
x=6;
y=6;
for(i=1;i<=9;i++)
{
gotoxy(x,y);
printf("-",i);
y++;
}
x=9;
y=6;
for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
gotoxy(x,y);
if(i<=j)
{
printf("%d*%d=-",i,j,i*j);
}
y++;
}
y=y-9;
x=x+8;
}
}