Correct output

What if i add a extra cout<<endl;
in my code then also it will be a wrong one?

absolutely because whenever you submit you code then at that time your code is judged through string matching and for that machine will take your output as string and then it will match correct output and if you will add extra “endl” so that for that string will not be matched so that in that case you will get wrong answer

1 Like