DEV Community

Discussion on: Daily Challenge #40 - Counting Sheep

Collapse
 
bhaveshg profile image
BHAVESH GUPTA

I made some assumptions for the pattern.

As i think the pattern is to print the numbers upto inputted number and concatinating string " sheep...", so as the total number of string " sheep..." in output string is equal to inputted number. that is no string for 0 but the "0" represent the number.