![]() |
Please suggest newbie forum
Hi
I just started learning programming with a web tutorial here: http://pine.fm/LearnToProgram/?Chapter=00 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? Thanks! |
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. |
Thanks, CodeSpawn. This place seemed too advanced for my question but I'll post my code here and see if anyone can help.
BTW, at the moment I wouldn't know where to post Ruby questions on your forum. Here's my broken code anyway: Code:
puts 'This program calculates leap years between 2 dates' |
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. Quote:
Quote:
Quote:
|
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. Thanks again. |
I'm glad that it is working for you. Good luck learning Ruby.
|
| All times are GMT +1. The time now is 02:04 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.