Skip to content

Conversation

@KKukreja-code
Copy link

@KKukreja-code KKukreja-code commented Jul 3, 2025

A new way to make a division problem. Uses the randomly generated numbers to produce the product, and then assigns one of the generated numbers as the factor and the other as the answer.

@januschung
Copy link
Owner

Hey @KKukreja-code thanks for your afford. While it is cleaner, it could make a very large product which is out of the boundary of the digit flag/logic. Say by default it takes 2 digits, your version could produce num1 or num2 up to 9801 (99 x 99) which would be way more challenging than it should.

Use randomly generated numbers to find the product. One of the numbers
then becomes the factor. Note that a new set of numbers are randomly
generated for division, and they are limited to be small enough such
that their product will obey the number of digits set by the user.
@KKukreja-code
Copy link
Author

Thanks for your feedback, I have edited my code. A new set of numbers are randomly generated for division, which are limited such that their product does not exceed the digit limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants