Modulo with a negative integer in C++
<p>Why does <code>-26 % 10</code> output <code>-6</code> in C++ ?</p>

<p>How to get the standard modulo, that would output <code>4</code> ?</p>

<hr>

<p><em>Note: this question is probably a duplicate of <a href="https://stackoverflow.com/questions/11630321/why-does-c-output-negative-numbers-when-using-modulo">this one</a>, or many others, but I haven't found one formulated in a short way, understandable in an eye blink. And as I personnaly like finding short questions / short answers (for simple issues), I thought it may interest other people. I'll delete this notice later.</em></p>