Widows 7 upgrade to windows 10

Hi, my Windows 7 professional has crashed. I was running Cubase 5 Studio student software since 2009 without any problem. Can I upgrade my PC to Windows 10 and reinstall the same Cubase? If not which version can I upgrade from my current version to which version of Cubase that will run on Windows10. If there is no Solution, does this mean that I repair my PC and install Windows7 professional again? Please help with any advice to keep costs down.