To do this, use assembly language programming.
To use the assembly language construct, use _asm {} in C # // google it next
To stop closing the console window, close the interrupt that is called on ctrl + c, or there is another interrupt that is called when you exit the program. Override it.
source share