Thank you for that, however, this is a simple task for our students who are just starting their programming journey, so we need to keep the logic quite simple for them
Clear. My example can be useful for experienced students who can show that the same problem can be solved in different ways or give an experienced student the task of walking this task without using if blocks
this is the link of my work please solve