Computers (unlike your dog) the computer will ALWAYS follow the commands that you give it.
Every computer program is a set of instructions; a sequence of short commands, one after another. It’s about breaking up a complex task into a set of smaller, individual instructions and using a programming language to write those instructions.
Programming Statement
Basically, the way you tell a computer to do something is by giving it instructions, or writing statements to explain a desired action. It’s similar to writing sentences in English, but with words, numbers, and punctuation added in depending on the programming language you’re using.
Loop
In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.
If
An if statement is a programming conditional statement that, if proved true, performs a function or displays information.