• + 2 comments

    Well,your second explanation looks appealing but you see I 'm converting it to integers after running the loop.But thanks a lot for the second explanation.It gave me a right reason about the out of range error.