-2

I have the following code:

#include <stdio.h>

int main(){
  printf("hello world");
}

The output is the following:

hello world%

Is there a way to remove the final "%" (which is actually black on white and not white on black like the other characters) of the output?

ecjb
  • 5,169
  • 12
  • 43
  • 79

2 Answers2

0

You can put printf("\n"); at the end of the int main().

-1

I think that is your shell prompt as @SteveSummit has said in the comment to the Question.

Karlo
  • 11
  • 3
  • Welcome to StackOverflow! Your answer is a bit unclear, as you are not providing a solution but pointing to a comment made by another user. Perhaps you could edit your answer and explain how would you address the question. This way, future visitors with the same problem could benefit from your insight! Check the following link for further info: https://stackoverflow.com/help/how-to-answer – SRG Nov 29 '21 at 23:47