954,135 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

help with an easy code

undefinedundefinedHELP!
could anybody have this kind of code: code that writes numbers from 1 to 10 in a list and then deletes even numbers.

jennie
Newbie Poster
1 post since Jun 2004
Reputation Points: 11
Solved Threads: 0
 

I can probably help, you just need to let us know which language you are talking about. Sounds like JavaScript... and you forgot to define a variable. Please post the code.

Arizona Web
Junior Poster
118 posts since Jun 2004
Reputation Points: 16
Solved Threads: 2
 

Note this is in the C++ forum, Arizona Web ;) However, we do need more information. How do you want to write these numbers? Do you want to write them to the screen? To an array? Remember, we can use modular division (%) to pick out even numbers. Mod division is like remainder division. So if we said, check to see if number (n % 2) == 0 it would divide n by 2, and if the remainder was equal to zero, we would know the number was even.

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Tell me where my beans are!!!!!
Tell me where my beans are!!!!!
Tell me where my beans are!!!!!
Tell me where my beans are!!!!!
Tell me where my beans are!!!!!

Make sense,no?post with more info next time jennie

FireNet
Posting Whiz in Training
258 posts since May 2004
Reputation Points: 108
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You