Skip to content

C Program to print the table of inputted number

by yashan on September 9th, 2011

Write a program in the C programming language to print the table of the inputted number. Below is the solution of the C program -

/* C Program to print the table of inputted number */
#include<stdio.h>
void main()
{
     int n,i,t;

     printf("Enter any number to print it's table \n");
     scanf("%d",&n);

     printf("\nTable of %d is - \n",n);
     for(i=1;i<=10;i++)
     {
             t=n*i;
             printf("%d x %d = %d \n",n,i,t);
     }
     getch();
}

Description – For loop is used to print the table.
Below is the output of the above program -

C program to print table

Table of inputted number

One Comment
  1. afraz permalink

    thankxxxx .it helped me alot

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS