<human>: Can you condense the text into three sentences or less?

This semester I am taking a statistics class and all semester I have had a crush on my professor. I have gotten to almost every class early and had random conversations with my professor, nothing personal just small talk type things. He is a grad student and is always very friendly. Now that the semester is almost over I find myself wanting to get to know him more and see him again when the semester is over. 

I don't really want to pursue any kind of romantic relationship with him right now I just want to be friends with him, but I don't know the best way to go about doing that. First off I don't know if there are rules aganist being friends with your former professors or not but I know that I have to try and become friends with him.

So my question lies in how should I approach him with this? What should I say? I have thought that it'd be cute to ask him on the last day of class whats the probability of us being friends, but I'm worried that will sound flirty. I thought about asking him in person but i'm afriad that will make him feel pressured to say yes. I prefer to ask him this in person rather than in email but I will try whatever has better odds of working.

Any advice you guys can give me on the best ways to do this? I really don't want him to even know I have a crush on him.
<bot>: I want to be friends with my professor after the semester ends but I don't know the best way to go about becoming friends with him. any advice is appreciated.