With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
I noiced that the test "if(i<2|i>13)" is using a BITWISE OR (indicated by a single "|") to combine the comparison expressions. It should instead use a LOGICAL OR ("||").It does work as is, but it is dependent on the compiler's internal representation of boolean values.Also applying good practice spacing rules, the corrected test would be:if (i < 2 || i > 13)
Let your inbox help you discover our best projects, classes, and contests. Instructables will help you learn how to make anything!
© 2016 Autodesk, Inc.