Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • on no :( i typed i++ here by mistake. i have entered it correctly in the program.. Commented Apr 13, 2011 at 10:25
  • I have solved it.. i took m in another loop above i loop and did m=m*2, thanks all :) Commented Apr 13, 2011 at 10:54
  • 1
    @Nandhini please post an answer describing how you resolved the problem Commented Apr 15, 2011 at 20:22
  • @ Andy : I had to do m=2^j for j=0,1,2 and so on inside a for loop inside 'generate' such that m=1,2,4,.... Instead what i did was that i removed j from the loop and just took the variable m inside the for loop and wrote for(m=1;condition;m=m*2). this way it works. Commented Apr 18, 2011 at 11:44