+ 1

Please how do I allow a second chance to a programme written in c language

C programming

23rd Feb 2020, 4:56 PM
Edem Jonathan Akuaku
Edem  Jonathan Akuaku - avatar
5 Respostas
+ 2
A second chance? what did you mean? can you explain more descriptively?
23rd Feb 2020, 4:59 PM
Ipang
+ 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
23rd Feb 2020, 5:00 PM
Edem Jonathan Akuaku
Edem  Jonathan Akuaku - avatar
+ 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
23rd Feb 2020, 5:05 PM
Ipang
+ 2
Thanks
23rd Feb 2020, 5:06 PM
Edem Jonathan Akuaku
Edem  Jonathan Akuaku - avatar
+ 1
No problem 👌
23rd Feb 2020, 5:07 PM
Ipang