-1

I write and run my code in VScode but it shows nothing in the terminal.enter image description here

Kraigolas
  • 5,121
  • 3
  • 12
  • 37

2 Answers2

0

You need to SAVE your code before you execute it. I see that your code is not saved. Save your code with this keyboard shortcut: Ctrl+S

Also, you do not have a file, your file name says "New Document...". You need to Go to File, open a folder, and inside a new project folder create your file. Now your program will run as expected!

wjandrea
  • 28,235
  • 9
  • 60
  • 81
Dennis Kozevnikoff
  • 2,078
  • 3
  • 19
  • 29
0
  1. Make sure that you save the file.
  2. make sure you open the file in the folder you saved.
  3. When you add code or change your code, don't forget to save again
  4. Run your code.