Used break and continue in a for and a while loop