loops

AWOL already responded with one solution, declaring it in the call itself withvoid do_task(int num) or you can declare it like you do any other variable already, at the top of your code with simplyint num;