Program of table of any number in C.

In this article, we will learn to how create a program of table of any number in C.

Let’s write a program of table of any number in C.  

Step 1: Let’s open turbo C/C++ and write the following code.

// Code   

// Add preprocessor file

#include<stdio.h>

#include<conio.h>

void main()

{

// Declare variable

    long int i,n,result;

// clear screen

    clrscr();

    printf(“enter any number : “);

// assign value in variable n

    scanf(“%li”,&n);

    for(i=1;i<=10;i++)

{

    result=n*i;

//print the result.

    printf(“ \n %li”,result);

}

    getch();

}