C Program to print a table of Input Number

      No Comments on C Program to print a table of Input Number
#include<stdio.h>
#include<conio.h>
void main()
{
int x,y,i;
clrscr();
printf("Enter Number to print a table:-");
scanf("%d",&x);
for(i=1;i<=10;i++)
{
 y=x*i;
 printf("%d * %d = %d\n",x,i,y);
}
getch();
}

OUTPUT:-

Leave a Reply

Your email address will not be published. Required fields are marked *