QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

HomeNewsGitHubWikiSamplesInFormGXQBjsCommunityMore…

SAMPLE: SQUARE COUNTER

screenshot.png

Author

🐝 Paulunknown

Description

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

QBjs

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!

File(s)

🔗 legacy