# Infinite or Infinite Not...... 2

Please Try Infinite or Infinite Not...... before solving this ... This is a snippet of code construct in java which gives a simple output :-----

CODE FOLLOWS int k=1; for( ; k>0 ; k++){

} System.out.println(k);

CODE ENDS ABOVE The answer to the question is the first three digits of 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... Note: If you think answer is infinity then enter "0" as the answer.

×