i want to make a error check on each input.
if i only got 1 input.. then i just use while(input==false)
so it will continue ask user to input if he wrong input
but if i have many input,then the while loop will complicated.. for example:
Enter ur gender
Enter ur age
Enter ur address
And so on
so if each input need a while loop then my program is something like this:
while(input1==false)
{
while(input2==false)
{
while(input3==false)
{
while(input4==false)
{
....
}
}
}
}
it is complicated for me to write
So any suggestion to done this?