C Program For Generating Multiplication Table


Aim :- Write a C Program to Generate Multiplication Table.

C program to For Generating Mulitplication Table Of Any Number.
The Number Will Be Given By User And This Program Will Generate Multiplication Table According That Number.


C++ Program Code :


#include<stdio.h>
#include<conio.h>
void main()
{
      int n, i;
      clrscr();

      printf("Enter a number : ");
      scanf("%d",&n);
      for(i=1;i<=10;i++)
      {
            printf("%d * %d = %d\n", n, i, n*i);
      }

      getch();
}



Output :


Post a Comment

0 Comments