It can be hard at times, but for some girls it is no problem to be friends with an ex.
The key is in how the relationship has ended. It's important that there is no anger and no one has cheated. If this is true for you then it is more than possible that with a little time you two can go back to being friends.
Friends and just friends. You must be clear about what you want. Sometimes when we pretend to want to be friends with our ex, we are really looking to get back together. Sometimes this is what you want and it works, but if it goes wrong then things will be even worse.
Give him space. If after some time apart you still want to continue to spend time together without wanting to be a couple, then you are ready to be friends again!
-source: justjared T.V show<>