Skip to content
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

Add Josephus Problem in Commodore Basic #3256

Merged

Conversation

rzuckerm
Copy link
Collaborator

Congrats on taking the first step to contributing to the Sample Programs repository maintained by The Renegade Coder!
For simplicity, please make sure that your pull request includes one and only one contribution.

Please fill one of the sections below as applicable.
Please also add any other relevant information to the Notes section at the bottom.
You may delete or just ignore any other sections.
For more information please refer to our contributing documentation

I Am Adding a New Code Snippet in an Existing Language

@rzuckerm rzuckerm added enhancement Any code that improves the repo josephus problem See: https://sampleprograms.io/projects/josephus-problem/ labels Sep 13, 2023
@rzuckerm rzuckerm marked this pull request as ready for review September 14, 2023 00:11
@rzuckerm rzuckerm enabled auto-merge (squash) September 14, 2023 00:12
Copy link
Member

@jrg94 jrg94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool! What is the history behind numbering lines by tens?

@rzuckerm rzuckerm merged commit ad230e6 into TheRenegadeCoder:main Sep 16, 2023
6 checks passed
@jrg94
Copy link
Member

jrg94 commented Sep 16, 2023

This thread gave me some explanation, which makes sense: https://stackoverflow.com/questions/71330902/why-are-labels-in-basic-increments-of-10

@rzuckerm
Copy link
Collaborator Author

Very cool! What is the history behind numbering lines by tens?

It's so that you can insert lines in between the existing code. That's the way I learned it many, many, many years ago.

@rzuckerm rzuckerm deleted the add-commodore-basic-josephus-problem branch September 17, 2023 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any code that improves the repo josephus problem See: https://sampleprograms.io/projects/josephus-problem/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Josephus Problem in Commodore Basic
2 participants