I need to print some data (a little bit strange formatted). I was writing it in PHP with if ($num%10==9) but it was impossible for me to get correct output.
So take
This will print hexadecimal 01-24 (with 0 padding in front of numbers less than 10)
for ($i = 1; $i <= 36; $i++) { printf("%02x\n", $i); }