Plz help me in this code , where is wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Plz help me in this code , where is wrong?

It is code coach code function main() { var depth = parseInt(readLine(), 10); //your code goes here var j=0; for(i=0;i<=depth;i+=5){ var m =i+7-2; j+=1 if (i>=depth){ break } }console.log(j); }

2nd Dec 2020, 1:42 AM
Chain Sing Maravi
Chain Sing Maravi - avatar
3 Answers
+ 4
There is only little problem i Explain in your code check out and added conditional statements. See this : https://code.sololearn.com/WbwPY06R9olX/?ref=app
2nd Dec 2020, 2:16 AM
Mohammed Qadir khan
Mohammed Qadir khan - avatar
+ 4
Most Welcome Chain Sing Maravi and i think you understand code logic Properly where is the actual mistake in your code that's why they show little problem. All the Best 👍👍.
2nd Dec 2020, 2:22 AM
Mohammed Qadir khan
Mohammed Qadir khan - avatar
+ 2
Thank you so muchMohammed Qadir khan sir
2nd Dec 2020, 2:21 AM
Chain Sing Maravi
Chain Sing Maravi - avatar