29.09.2017, 03:50
So I'm doing this
I just wanna know if there's a better way to do that.
PHP Code:
for(new i = 0; i < 10; i++)
{
printf("%i", i - (((i - 5) * 2) * (i / 5)));
}
// output
[00:49:20] 0
[00:49:20] 1
[00:49:20] 2
[00:49:20] 3
[00:49:20] 4
[00:49:20] 5
[00:49:20] 4
[00:49:20] 3
[00:49:20] 2
[00:49:20] 1