0
why does this not work
var i= 0 for (;depth >0;){ i++ depth -=7 if (depth > 0){ depth +=2.2 console.log (i); } } }
2 Answers
+ 1
// hope this code helps you
let depth=37;
for (let i= 0; depth>0; i++){
depth -=7;
if (depth>0){
depth +=2.2;
console.log(i, depth);
}
}
+ 1
Hope this link helps you
https://code.sololearn.com/Wl9Gn0C9FkB0