program T01 implicit none integer::a,b,c,d d=0 do a=1,12 do b=1,3 do c=0,10 if(a==b+c)then d=d+1 end if end do end do end do write(*,*)d-1 end program