example displays output in loop
example displays output in loop