i have just started learning c++
i just want a program to print ood & even from 1-100
please help me
Recommended Answers
Jump to PostIn anticipation of the thread being split, Ed has a comment.
> I suggest using a bitwise AND (much quicker as it doesn't involve a division)
This is a common misconception. Every time Edward tries to confirm such claims, the result is that the two are competitive at all …
Jump to Post>>you should start a new thread rather than reply to this one
>>in anticipation of the thread being split
Done.
FWIW: I agree with Ed. Optimizing on this level often leads to unreadable (/unmaintainable) code. When programming for something as powerful as a normal PC/Notebook, readability is …
All 7 Replies
daviddoria 334 Posting Virtuoso Featured Poster
Ketsuekiame 860 Master Poster Featured Poster
Radical Edward 301 Posting Pro
Ancient Dragon commented: good sumation +28
jonsca commented: Good going Ed +4
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ketsuekiame 860 Master Poster Featured Poster

ZootAllures
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.