- Use if/else statements to conditionally execute code
- Use while loops to conditionally repeat statements
- Use for loops to iterate a specific number of times
Given the following variable
var grade = 89;
On your table, create a set of if/else statements that prints out a grade.
- A = 90 - 100
- B = 80 - 89
- C = 70 - 79
- D = 60 - 69
- F = 0 - 59
Use a while loop to print a count from 0 to 10;
Use a for loop to print a count from 0 to 10;