Next: The switch statement Up: Nested if and if-else Previous: Review Questions

Exercises

  1. Extend the mark-processing exercise 3 in Lesson 12 as follows. Print out the student's average mark (to the nearest integer) and also include a grade A to F alongside the average mark as defined in review question 2 above.



Next: The switch statement Up: Nested if and if-else Previous: Review Questions