help me please?

help me with my codes. how do i end the loop when i enter a value and by not breaking the loop? because when i enter a value in the seat[a] it keeps on repeating. it should return in the main loop which is the for(b=0; b<=10; b++). help me please.