Sublime Text does not support inputting data into a program. You can up vote this feature request on: Currently you can try to install the package https://packagecontrol.io/packages/SublimeREPL and use it to run you program from a Sublime Text view. You you can try out the VSCode editor: https://github.com/Microsoft/vscode, which is pretty similar with Sublime Text.
Sublime Text does not support inputting data into a program. You can up vote this feature request on: Currently you can try to install the package https://packagecontrol.io/packages/SublimeREPL and use it to run you program from a Sublime Text view. You you can try out the VSCode editor: https://github.com/Microsoft/vscode, which is pretty similar with Sublime Text.