Welcome to 2023. - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Welcome to 2023. (/showthread.php?tid=1453) |
Welcome to 2023. - eoredson - 02-08-2023 Hi, Happy belated 2023! This is a program to display the factors of 2023: Code: (Select All) Year = 2023 RE: Welcome to 2023. - PhilOfPerth - 02-08-2023 An interesting program! I wish I knew how it works though - it's quite cryptic to me! Any chance of naming some variables, to enlighten dummies like me? And do the labels "80" and "0" have a purpose? RE: Welcome to 2023. - eoredson - 02-08-2023 Actually the 80 serves no purpose. (removed) The Year could be set to anything. Erik. (vote my reputation) RE: Welcome to 2023. - PhilOfPerth - 02-08-2023 (02-08-2023, 05:40 AM)eoredson Wrote: Actually the 80 serves no purpose. (removed) Voted! I tried a variety of years, and all worked correctly (except zero, negative and fractions, which I didn't really expect to work anyway). Good job! RE: Welcome to 2023. - bplus - 02-08-2023 (02-08-2023, 05:31 AM)PhilOfPerth Wrote: An interesting program! For @PhilOfPerth Code: (Select All) 'yearInteger/testInteger = yearInteger\testInteger is one way to see if yearInteger is divided by testInteger RE: Welcome to 2023. - PhilOfPerth - 02-08-2023 Thanks bplus. Now I (sort of) get it... I'll work through it now and see if I can absorb it.. and thanks for the tag! Late extra: I got it! |