What make/model computer ?
You may have a hidden partition that will have the restore/recovery program.
For example if a DEll computer:
Restart the computer and when you see the blue bar at the top of the screen showing Dell,press CTRL and F11 to enter the recovery/restore partition and follow the prompts.
Using the the hidden partition recovery will restore all preinstalled software.