Hello there,

I have a question regarding this program - http://www.learntosolveit.com/cprogramming/Ex_1.20_detab.html

There is an explanation down below the program but I´d still like to ask:

Why use this piece of math  % TABINC to calculate the number of spaces?

What is the logic behind it?

 I understand the first part how to determine the number of spaces when it comes to the starting words, but that lower part is still not clear to me.

I´d appreciate if anybody would be willing to take a quick look and clear this up for me : )

Thanks and have a good one : )