Why can't I get my output, what's a wrong with my code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why can't I get my output, what's a wrong with my code?

function main() { var depth = parseInt(readLine(), 10); var caracol= 0 for (caracol = 0; caracol >= depth; caracol++) { if (caracol == depth) { break; } console.log(caracol+7-2); } }

18th Jun 2021, 1:18 PM
Andrés Puello
Andrés Puello - avatar
2 Answers
0
Brother, in the readline, solo learn put me the answer for the input, not me ._., it's the exam for each Module
18th Jun 2021, 1:58 PM
Andrés Puello
Andrés Puello - avatar
0
I'll try anyway
18th Jun 2021, 1:59 PM
Andrés Puello
Andrés Puello - avatar