Printing the table of a number using functions:
#include<stdio.h>
void table(int n);
int main()
{
  int n;
  printf("enter the n:");
  scanf("%d",&n);
  table( n);
  return 0;
}
void table(int n)
{
for(int i=1;i<=10;i++)
printf("\n%d",n*i);
}

Posted on by