If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Please suggest newbie forum

It's great but I one of the assignments (the Leap Years program at the end of chapter six) was too difficult and my code produces an endless loop!

It's a very simple program and I am very new to this so I didn't want to post it here where everyone seems to be "on rails" so to speak. Does anyone know a forum which is dedicated to helping beginners where I could maybe post my code and ask people to tell me where I 've gone wrong?

I think You Can Use This Place For That.
But I just created my own forum. http://www.allcodeforum.co.nr I am trying to get more members so yea. It is dedicated to helping everyone in every programming language. I am good at most languages including ruby so I could help you. But I do want more members though.

That is simple. First Of I forgot I just added Ruby to COMPUTER PROGRAMMING LANGUAGES. Lol I comleatly forgot about Ruby. It is still a new forum. So all the programming languages in the world can't be there from the beggining. But I am working on it.

As for you problem. I see only 2 things wrong with it. The code that calculates the leap years isn't bad. But I must admit it is annoying to see all the years and it saying is not a leap year.

So I would just take out this entire line.

puts countstart.to_s + ' is not a leap year'

Other then that. It seems to work. The reason why it might not work for you is because at first the compiler whined to me. Something about unexpected kEND expected $end. So I replaced the last line of your code from

Thanks very much!!!! It works! I don't think I could have figured that out by myself.

The "(Year) is not a leap year" is totally annoying. You're right. It wasn't in my original code.When it didn't work, I added that line to see what was happening to the loop when the program was running. I'll take it out again so I don't annoy myself!

Good luck with your forum. I am gonna have some more Ruby questions in the future, for sure.