A program will not run if it has syntax errors. Any such errors must be fixed first. A good integrated development environment (IDE) will usually point out any syntax ...
An AND gate usually has two inputs. AND tells us that both Input A AND Input B have to be 1 (or ON) in order for the output to be 1. Otherwise the output is 0.