When we write a computer program, we’re giving the computer a set of instructions for what we want it to do. Just like we can tell a dog to “sit” or “beg”, we can tell a computer to “add” or “print”. A computer isn’t as furry as a dog, but fortunately, it’s a lot more reliable! And just a bit better at math…
A laptop with a collar and a leash. A speech bubble says “ADD!” on the side. The laptop displays “2 + 2” and “4”.
Let’s start with a simple “Hello World” program, the first program of many new programmers. Our goal is to get the computer to display “Hello World” somewhere on the screen.
That’s as simple as: