C Programming
Computer Programming

Program in C to print multiplication table using pointer



Write a Program in c to print multiplication table using pointer

\* C Program to to print multiplication table using pointer *\

# include < stdio.h >
int   main( )
{

int   num, i  ;
int   *ptr  ;
printf(" Enter the number for Print multiplicaiton Table: ") ;
scanf("%d ", & num) ;
ptr = &num  ;
printf("\n Multiplicaiton Table of %d are :\n", num) ;
for (i = 1; i <= 10 ; i++   )
{

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

}
return ( 0 );

}

Output of Program :

Output of Program in C to print multiplication table using pointer