While and For Loops code added.