Vscode not functioning properly

Good day guys. My Vscode runs all my code via the terminal and not the output section. Pls what can I do to resolve this? While watching Mosh’s lessons, I saw his code ran via the output section except when he ran codes with input from users, he ran those via the terminal. Thanks!