Quote Originally Posted by hitesh_best View Post
Oh yes, there is a mistake in the code.

It should have been variable i in the print statement, instead of a.
which means you actually posted the code without even looking at it once or bothering to compile it?
Or just typed it from memory and never bothered to check it.