0

using loops ie for,while or do while .to check..for login input data validity

Username must match as before So should the password

21st Nov 2019, 11:40 PM
joshua joe Joe
joshua joe Joe - avatar
3 odpowiedzi
+ 3
have you try writing some code for this, if(true) show it; else try write some, users here don't write code for others but help em fix it
21st Nov 2019, 11:43 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
If you were asking which loop is more suitable for login information validation scenarios, then I recommend do...while loop. Why? because this loop goes at least once before it evaluates the loop condition validity. You normally get the credentials at least once, check for credentials validity, and loop while it's not valid, or exit the loop if credentials are valid. Implementation is in your hand, nonetheless tup
22nd Nov 2019, 4:15 AM
Ipang
0
You can also "switch" also for this.
22nd Nov 2019, 12:45 AM
usman
usman - avatar