Navigation

Saturday, 28 February 2015

Table Print

This program is to Print table in format 2*1=2.

void main()
{
    int n,i;
    clrscr();
    printf("Enter the number whose table has to be print:");
    scanf("%d",&n);
    for(i=1;i<=10;i++)
    {
        printf("\n%d*%d=%d\n",n,i,n*i);
    }
    getch();
}

No comments:

Post a Comment