Saturday, 30 December 2017

C program to generate Multiplication Table

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

      printf("%d Multiplication Table:\n",n);


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

          {
             printf("%d * %d = %d",n,i,(n*i));
             printf("\n");
          }
     return 0;
}




No comments:

Post a Comment

Featured Post

TCS Latest Test Patern ( For On-Campus Drives )

Tata Consultancy Services is software services consulting company whose  headquarter is situated in Mumbai, India. It is the Asia’s larges...