Not able to solve

Can you please provide me with the solution of :

  1. q no. 8
  2. q no. 15
  3. q no. 33

@Autri,
These questions are for practice. I cannot provide you the solutions, but I can help you solve them by correcting your code in case of a mistake. Please share your code as well
.