Draw a flowchart to display all the prime numbers below a given number.
e.g. Input is 10, output : 2,3,5,7
Here's my flowchart:
http://i1146.photobucket.com/albums/o530/HTHVampire/C%20plus%20plus/image_zps57db30f1.jpg
By right, is the flowchart acceptable? I'm wondering if my input is 2, will it output 2 also?
Thanks for your guides!
Did you try tracing this through by hand? What were the results?
I started off trying to follow it myself, but wasn't sure that I was correctly reading the hand-written text so I stopped.