Explaining each block of code that we have created so far

I may not have the right answer but this is my understanding. We start off with the processor directive which is an import of a library with the pre-written tools we’ll use in our program. Next up is the beginning of our main function that starts with expression statements our output of text to the player. Then we go into our declaration statements which is where we have set and initialized our variables. The last set of code is more expression statements these are giving an output for our variables. Our code finishes with a return statement letting the computer know we have come to the end of our function.

Privacy & Terms