Turns on but shuts itself right away
I can turn on my MacBook, after the apple sign shows up for a minute or so it just shuts itself off.
When I last use my computer it was fine, instead of shutting it off the safe normal way I hit the power button, the screen went off but it didn't shut off so I held the power button till it shuts off.
Now I don't know what to do to keep it stay on, please help! I've been looking up some forums and tried option+command+P+R while I tried to turn it on but no luck!