Azgor,
First make sure you have backed up whatever files you can recover. The fact that you reformatted the C: drive may mean that you lost the files unless you backed up before doing that? Formatting is destructive so that anything that was on it will now be gone. If you were storing your user files on a separate disk in your PC then you may be OK.
With regards to re-installing you need to create a new Windows 10 disk or USB stick. Microsoft have a download page where you can download the latest released build using their Windows 10 Media Creation tool. There is a good article on how to use the tool to create a DVD or USB Stick:
https://www.techadvisor.co.uk/download/operating-systems-distros/windows-10-media-creation-tool-100171341-3330946/
You will need to do this on a PC that is already running Windows.
Once you have your USB or DVD installer created, you can install Windows using it. Just insert the stick or DVD and reboot your PC. Whilst it is booting up you will need to go into the BIOS of your computer and set which device to boot from (USB or DVD) and then when it boots it will boot off the install media you have created.
Follow the installation instructions. When it gets to the part where it asks you for an License Key you have two options.
1. If you previously signed into your Windows 10 installation using your Microsoft Account, you can select the option to skip entering a key as when Windows gets installed and you go back in using your MS Account it will find the old license details for your PC and automatically re-activate it.
2. If you did not use a Microsoft Account to log in previously but used a user name and password that is not an MS account then you will need to enter your original Windows 7 license key. This should be on a sticker on the case of your PC. If a laptop sometimes it is stuck on the inside of the battery compartment. If for any reason Windows 10 won't accept that, select the skip option like in 1 above and get Windows installed and then you can call MS Support and explain what has happened and they will give you a new key that will allow you to activate it.
Once you have Windows 10 up and activated then you can restore you backup files if you have them, or if your data was on a second hard disk you can access them through the disk management tool.