+ 1
Please how do I allow a second chance to a programme written in c language
C programming
5 Antworten
+ 2
A second chance? what did you mean? can you explain more descriptively?
+ 2
I mean to say if I allow a user to input something and the input is invalid
How do I give the user a second chance to reinput
+ 2
Oh I see. Well, you can use a loop to achieve such intent, but here in SoloLearn, reading input using loop is kinda tricky. Need to be careful because SoloLearn doesn't take inputs interactively, it rather takes all inputs ahead of time before processing the code.
Run this code to get better understanding on how SoloLean takes and makes use of the supplied inputs
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
+ 2
Thanks
+ 1
No problem 👌