You are viewing a single comment's thread. Return to all comments →
why is the code not taking input 5 into consideration ?? if we see the input and output in the question the number 5 is ignored
This is totally late. But, its not being ignored. Its the amount of inputs that are about to be passed through. So, its used with the loop above the try catch block.