Write A Program To Print Table Of Given Number in C Programming Language? Usefull Question For O Level, A Level, B Level, C Level, BCA. B.Tech. (CS/IT)

Program To Print Table Of Given Number in C Programming Language

#include<stdio.h>

#include<conio.h>

void main()

{

int n,i;

clrscr();  /* To Clear the Previous Output on Screen */

printf("enter the number");     

scanf("%d",&n);                                                   

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

  {

    printf("%d*%d=%d \n", n, i,n*i);                                   

  }

getch();  /* To Hold the Output Screen */

}

Output :

If the n=5 then...

5*1=5

5*2=10

.

.

.

.

.

5*10=50

Comments

Popular posts from this blog

Best Computer Coaching Institute in Lucknow - Kaish Classes | Kaish Computer Institute | NIELIT CCC | NIELIT O Level