Welcome to the Ranch
You have far too much code all in the one
method.
You should have a method for everything you are doing. One method to set up the empty array, one to fill seats, one to count them, etc. You cannot make sense out of doing everything in one method. That includes exiting; you should have en exit method or at least a loop with a condition to continue when you don't enter 0.
Are you using the
== operator to compare inputs? That is highly unlikely to work.
Why are you not using Seat objects?