Initials Code Coach Problem | SoloLearn: Learn to code for FREE!

+7

Initials Code Coach Problem

I was solving the Initials problem and then while outputing I saw that there is an unexpected space at the begining but my output is all Ok....I am facing problem with that space..... What to do Here is the code: https://code.sololearn.com/cYdNNVc5OCUi/?ref=app

8/2/2020 11:57:24 AM

Gorom_Pani

8 Answers

New Answer

+2

You string array taking n+1 size..? Why? If it is 4 inputs then 0 to 3 enough, including 4 making extra output spaces..

+3

https://www.sololearn.com/post/482914/?ref=app Here is the output

+3

codemonkey Actually For making the n+1 the error occured and that extra space was for that......actually I tried with just n sized then I seen one initial is not appearing.... Then I added n+1 but that was a compiler mistake..... Cause now I tried with n and it worked perfect!

+2

codemonkey why bro please expalin.

+2

codemonkey How there is a new line I haven't added it..... How this new line appered??

+2

codemonkey Now you say whats the problem in this output??

0

0

Ajoutez: getchar ()