+ 1

Who solved snail 🐌 project in Javascript?

And how

26th Aug 2021, 9:48 AM
DONIYOR ERKINOV
DONIYOR ERKINOV - avatar
2 Respostas
+ 4
Please share your attempt here so we may assist. A common method is to use a while loop which will break when the snail reaches more than the height of the bucket. while (depth < height) Each day he climbs 7 // depth +=7 day +=1 check to see if he is outside. if not: depth -=2 while loop starts again When the loop breaks, print the days
26th Aug 2021, 10:02 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
Note: There is a search option🔎 in Sololearn discuss section (in top right corner). That search option should be used everytime before asking a question.
26th Aug 2021, 10:26 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar