C Code 15 _ To print the entered Mathematical Tables by the user
Program:
#include<stdio.h>
int main()
{
int
n,limit,i,v;
printf("*
* * * * * * * * Tables * * * * * * * * * * * *");
printf("\n\nEnter
a number to print its tables : ");
scanf("%d",&n);
printf("Enter
the end limit of %d tables to be printed : ",n);
scanf("%d",&limit);
for(i=1;i<=limit;i++)
{
v=i*n;
printf("\n%d
* %d = %d",i,n,v);
}
getch();
return
0;
}
Output:
Thank You ...