I am wondering how is it possible to make the first loop being repeated if it does not meet the `if` condition. While I have been trying to use the `goto` statement it gives me the legacy error. How can I fix that?

```
   10   do i=0,izmax
         some code
          do j=jmin,jmax
           some other code
          enddo
        enddo

    do i=0,izmax
      if (x < y) then
        write 
      else goto 10
    enddo 

```

In other case, when only one thing from the loop should be repeated what is the method? By that I mean

```
     do i=0,izmax
         some code
          do j=jmin,jmax
           some other code
          enddo
  10 statement to be repeated
        enddo

    do i=0,izmax
      if (x < y) then
        write 
      else goto 10
    enddo 

```