Results 21 to 21 of 21
- 03-31-2012, 01:10 AM #21
Re: if else - declare if its an odd or even number - help !
Your current code is a mixed up mess. I suggests that you delete all of it and start over.
Make a list of the simple steps the code must do for the task that you what it to do.
Make each statement in the list a simple statement.
prompt user to enter some input
read user's response
convert the input to ...
When you have a list of the steps the program should do, then write the code for a step, compile it and test it.
When it works, add the code for the next step, compile it, test it and when it works, move on to the next.If you don't understand my response, don't ignore it, ask a question.
- By hqt in forum New To JavaReplies: 5Last Post: 11-24-2011, 08:23 AM
- By tommyyyy in forum New To JavaReplies: 1Last Post: 03-20-2009, 10:08 AM
- By Chase in forum New To JavaReplies: 3Last Post: 09-24-2008, 11:59 PM
- By Adiel224 in forum New To JavaReplies: 5Last Post: 09-19-2008, 10:38 AM