However it looks cleaner and is shorter than the if statement when multiple choices are to be made. The case statement can only have variables and choices that are scalars.
Scalars are data that have discrete values.
The other new data structure we discussed is the for loop. The for loop is sometimes called a counted loop. The while loop is called a top tested conditional loop. If we wished to add 5 scores we could write this with the while loop and it would look like this. Written by Terry Scott.