0
Can someone give tips on how to go about this?
function main() { var depth = parseInt(readLine(), 10); //your code goes here } In the module 3 project of JavaScript, I have tried applying the principles gained from the lessons but there are still problems.
16 Respostas
+ 3
It's quite easy, thanks to help in explanation I got from friends.
I recommend you do a lot of research and go over the lessons again. This might be helpful
+ 1
Oh ok, please wait a while
+ 1
I used the for loop function, but none of the test cases came out right
+ 1
unction main() {
var depth = parseInt(readLine(), 10);
//your code goes here
var x=0
var length=0
while(length<=depth) {
length+=7
y++;
if (length<=depth) {
length-=2
}
else{console.log(y)
return y;
}
}
This was what I did
+ 1
Ok, thank you sir
+ 1
Ok, I think I have to restart everything
+ 1
Snail in the well
It's 8n JavaScript
+ 1
Thanks a lot
0
I have the same problem :(
0
you have first to understand the syntax of if statement and syntax of loops
0
Can someone teach me how to use C Program?