(factors of ()) block

by erikkoevsnap
See Code Download Embed
this is a block i made that finds the factors of a given number. feel free to use it in your projects. to use it, just go inside the project and click the file icon on the top ribbon. then click "Export blocks..." then click "OK". this downloads an XML file. to import the block into your project, click the file icon, then "Import", and choose the XML file. you can now use the block in your project.

when you try to put 0 in the number input, it throws an error at you, saying that "0 has an infinite number of factors". this is because when you divide 0 by basically any number, you get 0, which is a whole number.

Created June 11, 2023

Last updated June 11, 2023

Published June 11, 2023