What is fuction of power supply?
The power supply makes the computer run, without any type of
power supply it would be impossible to run a computer.
The mains power supply for a laptop and the power supply unit of
a desk top, both convert the high AC voltage from the mains power
and convert it to low voltage DC, for the electronics of a computer
to use.