Do I tell him?

I was seeing my boyfriend for about three months. We broke up but we were still intimate a few times. I got sick and had to go to the doctor and they told me I was a few weeks pregnant, but miscarried. 
I haven't spoken to him in a few weeks and to be honest I have no clue what I'm supposed to do. 
Do I tell him l, or no?