Question new pc turn itself on and off

Feb 16, 2020
1
0
10
So I build my first pc, but if I start the pc it will run for around 30 seconds. Then it will shut itself down and also immediately turn itself back on and it will do the same thing again. Does anyone know what the problem could be?