//Print tables upto a number using nested for loop
#include<stdio.h>
int main()
{
int i,j,k ;
printf("Enter the number: ");
scanf("%d", &k);
printf("\nthe tables from 1 to %d: \n",k);
for(i=1; i<=k; i++){
for(j=1; j<=10; j++){
printf("%d ",i*j);
} //end inner for loop
printf("\n");
} //end outer for loop
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: