How do I consistently play c5

I’m new to trumpet and only started a couple weeks ago but it’s so hard to get c5. It like fades into it and goes in and out of c and b. Idk how I should get it consistently and also the d is very hard to and I can only get it like once every 5 attempts. I need some help if anyone has it.