Check out The while And do while Statements and The for Statement.