Fortran (GFortran), 145 138 134 128145 138 134 128 125 bytes
character*8s;docharacter*8s;do5 i=1,100;s=''
if(mod(i,3)<1)s='fizz'
if(mod(i,5)<1)s=trim(s)//'buzz'
if(s=='')write(s,'(i0)')i
5 print*,s
enddo
end
Try it Online!
134b
138b
145bTry it Online!
On line 4 we write the current value of i
into the string s
. This greatly simplifies the subsequent print
statement.
128b
134b
138b
145b