1

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

4
Contributors
3
Replies
4
Views
13 Years
Discussion Span
Last Post by FireNet
1

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.

0

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.

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.