Solved Exercise 6 Based On The Given Variable Declarations

Solved Exercise 6 Based On The Given Variable Declarations