CASE selection

CASE statements are when the variable is tested and if the case is true then it is outputted.

For example:

case

The program uses a sequence to test each answer so if the user inputs 65 as their score the output will be a D grade.

 

 

 

 

 

 

 

Leave a comment