This is a snippet of code construct in java which gives a simple output :
1 2 3 4 5 

The answer to the question is the value printed i.e. the final value of 'k'. Note : Its a good question so please do not spoil its fun by using a computer to solve it.Have fun...