What you've done is a mistake. But a solution is available.
How come you delete the Ubuntu partition from Windows when you're on a dual boot?
GRUB is the bootloader and it is contained in the partition alongside Ubuntu. GRUB helps you load your Operating System. Without the bootloader, how come you come load the Operating System now?
Solution:
There is absolutely no loss of data from Windows.
You need a bootable DVD/Pendrive containing your version of Windows. Say, you have Windows 10 Pro on your PC, you need a boot Disk/Pendrive containing Windows 10 Pro; If it's Windows 7 Professional, you need a drive containing Windows 7 Professional.
Plug it, restart your PC and enter boot mode. Select Repair Windows... option and open Command Prompt. In the CMD, type the below commands:
bootrec.exe /fixboot
bootrec.exe /fixmbr
This would fix everything. Years ago, I've come across the same problem.
Now, you can log in into Windows as you did earlier. Go ahead and download Ubuntu 18.04 and dual boot your PC.