C Program to Print The Table of Given Number


C program to print the table of any number inputted by the user.

Need To Learn

  1. Operators
  2. For Loop
  3. I/O Functions







#include <stdio.h>

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

    return 0;
}

Post a comment

Post a Comment (0)

Previous Post Next Post