Hacker News new | ask | show | jobs
by charles-salvia 3340 days ago
k, along with j, is also often an index.

Of course, this mathematical convention carried over into programming as well, with i,j, and k serving as index variables.