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

feat: allowed injiza_amakuru() to have multiple args #88

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

pacifiquem
Copy link
Member

Now this will work,

reka urutonde_rwi_imibare = []
reka umubare_wimibare = injiza_amakuru("Uratanga imibare ingahe? ")

reka i = 1
reka j = 0

subiramo_niba(i <= umubare_wimibare) {
  reka umubare = injiza_amakuru("Shyiramo umubare wa ", i, ": ")
  KIN_URUTONDE.ongera_kumusozo(urutonde_rwi_imibare, umubare)
  i = i + 1
}

Observed this line? injiza_amakuru("Shyiramo umubare wa ", i, ": ")

Yes this will prompt user to enter a number and showing corresponding index we're at.

@pacifiquem pacifiquem merged commit 46a5733 into main Mar 12, 2024
2 checks passed
@pacifiquem pacifiquem deleted the injiza_amakuru-multiple-args branch March 12, 2024 07:27
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.

1 participant