C Program to print the multiplication table

C Program to print the multiplication table



#include

main()

{

int n,m;

register int i;

clrscr();

printf("WHICH TABLE YOU WANT\n");

scanf("%d",&n);

printf("UPTO WHICH NUMBER\n");

scanf("%d",&m);

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

printf("%d * %d = %d\n",n,i,n*i);

getch();

}



No comments:

Post a Comment