Home • News • GitHub • Wiki • Samples • InForm • GX • QBjs • Community • More…
SAMPLE: SQUARE COUNTER
PRINT " This is a program used to count squares or rectangles for" PRINT " people who don't want to waste their time on solving annoying" PRINT " long puzzles where they need to count how many squares or rectangles" PRINT " are in a certain grid. NOTE: A 3 by 3 grid don't just have 9, it also" PRINT " count the bigger ones (like the grid itself). So a 3 by 3 have 14" PRINT " squares in total."
Please note that QBjs is still in early development and support for these examples is extremely experimental (meaning will most likely not work). With that out of the way, give it a try!