The follow code show optional loops with fork()