Thursday, 3 August 2017

Multiplication Table

#include<stdio.h>
void table(int);
void main()
{
     int i;
     printf("Enter number>> ");
     scanf("%d",&i);
     table(i);
    

}
void table(int n)
{
     int i;
     for(i=1;i<=10;i++)
          printf("\n%d*%d=%d",n,i,n*i);

}

No comments:

Post a Comment