CNIT 133 Homework 4 - Looping statements

  1. Part 1:
  2. a) Calculations using for statement
  3. b) Calculations using while or do while
  4. Part 2 - Compound interest
  5. Extra Credit - Hollow square of asterisks

Part 1A: using for loop

Part 1B: using while loop

Hollow Square

Part 2: Compound Interest