I used to the Intel fortran compiler which supports using the extension like
write(*, \'((2I4))\') (i, 2*i, i=1,n)