I have input numbers:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13.... etc
I would like to get output for each of these nunbers to be:
1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2... etc
so for my input 12 i wanna get 4 and for 13 it would be 1 and so on
is there any simple way how I could get that?
for example 13 - ( int(13/4) * 4 ) is 1
that works for 14 or 15 too, but unfortunately not for 12 or 16 as i will get 0 which is wrong