Hi,
I would like to print the table of a number entered by the user like
2 *1=2
2*2=4
2*3=6
The code is
#include<stdio.h>
#include<conio.h>
main()
{
int i,num;
printf("Enter any number");
scanf("%d",&num);
for(i=1;i<=num;i++)
printf("%d*%d=%d",num,i,num*i);
getch();
}
But this code is generating errors.