can someone explain the code me plz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

can someone explain the code me plz

function main() { var depth = parseInt(readLine(), 10); //your code goes here i = 0; for (; depth > 0;) { i++; depth -= 7 if (depth > 0) { depth += 2 } } console.log(i); }

11th Nov 2022, 10:53 AM
Liyutsa Zirange
Liyutsa Zirange - avatar
1 Answer
0
There is no need to clutter the Q&A with duplicate questions. https://www.sololearn.com/Discuss/3102687/?ref=app
11th Nov 2022, 1:56 PM
Brian
Brian - avatar