I want to know how the modulo operator is used here
Input and output are as follows:
Input : 6
1 2 3 4 5 6
2 3 4 5 6 7
3 4 5 6 7 8
4 5 6 7 8 9
5 6 7 8 9 0
6 7 8 9 0 1
#include <stdio.h>
int main(){
int i, j, n;
printf("Input n: ");
scanf("%d", &n);
for(i=0; i<n; i++)
{
for (j=1; j<=n; j++)
{
printf ("%d ", (i+j)%10);
}
printf("\n");
}
return 0;
}