{ A destination to learn coding }

Code to get table of any number


#include < stdio.h >
int main()
{
    int a,i,ans;
    printf("Enter a number to get its table\n");
    scanf("%d",&a);

    for(i=0;i<=10;i++)
    {
        ans=a*i;
        printf("%d * %d = %d\n",a,i,ans);
    }
    return 0;
}