Hello, I tried all the test cases that I could think of and getting the correct answer for them. But the judge is giving wrong answer. It'll be big help if someone looks into my code. Here is its Ideone - Link removed after AC
for i = 1 to 100000 print i next i
Now you have lots of test cases to check Your issue is evident within that range. Good luck!
Thanks leppy I found a test case for which it was failing. And got AC.