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

Recommended Answers

All 3 Replies

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.

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.