This is a simple demonstration of one way to determine if a number is even/odd, or prime/not prime. There is very minimal error checking, and the demo can only handle numbers in the range of a long integer.
It’s a pretty simple program, meant for beginners to get an idea of how to accomplish this. If you have a better or different method, why not make your own post with demo code?
Attachments
File | Uploaded | Size |
---|---|---|
389-20190714-110909-evenodd.zip | 7/14/2019 11:09:09 AM | 2892 |