kin-lang / kin

The Kin Programming Language ( Write computer programs in Kinyarwanda - native language for Rwandans )
https://kinlang.dev
MIT License
209 stars 11 forks source link

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

Closed pacifiquem closed 8 months ago

pacifiquem commented 8 months ago

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.