Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
the above solution contains this -
output = 1 + "*".repeat(i-1) + i;
which instead of making a pattern replaces the previous output(patt).
Hence, add a newline and change that output statement in else{}.
i am glad that you found it.
This comment is hidden because it contains spoiler information about the solution
Hey! It's just a hint and you should understand on your own taking help from the examples.
Thanks
This comment is hidden because it contains spoiler information about the solution
I have made it quite easy and yes i checked through your code and resolved that.
Thanks
Should I add something related to the same.
cool! I'm adding that.
This comment is hidden because it contains spoiler information about the solution
Exactly! use return folk
Yep! there is no newline after the pattern ends.
there is no newline in the end of the pattern
you are right. zero is excluded
you are entering in a new line after the last condition terminates.
THATS NICE! keep going dude..
Loading more items...