Skip to content

Easier, cleaner way to create division problem. #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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