Void -> how it returns values to the main programm

i didnt find a way to loop something for a amount of time

Look at the while statement.

yes i use i j k as global for many void functions

Stop that. And get rid of the word there. The term is function(s). void is a return type.

about the unsigned long

What about it?