Why there is % symbol in the end of my output?

Viewed 447

Every time I get this symbol at the end of my output. This only happens in VS Code.

enter image description here

1 Answers

This means that the program exited without printing a newline after the last line of output. You can change it to the following, and it should go away:

cout << "roshan\n";
Related