  We prove that any graph on $n$ vertices with max degree $d$ has at most
$q{d+1 \choose 3}+{r \choose 3}$ triangles, where $n = q(d+1)+r$, $0 \le r \le
d$. This resolves a conjecture of Gan-Loh-Sudakov.
