– Read the string character by character and store it in output string until a separator is encountered.
– Create a count variable that keeps a track of number of times this separator has occurred. 136 more words
To print triangular pattern we need two loops.
Inner Loop and Outer Loop
Inner Loop prints the rows
Outer Loop prints columns
In this pattern the logic observed is the decreasing difference… 115 more words