Chapter 3 A First C-Program: Structure, Printing, Repetition
We start this chapter by jumping right into coding and writing our first C-programs. We’ll learn how to display messages to the computer screen in order to communicate with the user. We’ll learn how to find mistakes in our code, and we’ll even take a look at some simple repetition (also known as “looping”). In the process we’ll take a look at the main structure of a C-program. Here are all the topics we’ll cover:
-
A first C-program
-
Displaying messages on the screen ("printing")
-
Printing multiple lines
-
Syntax errors
-
Repetition (looping)
-
Simple looping errors
-
Comments