errors {fixed} | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

errors {fixed}

Why does this code outputs 2 errors https://code.sololearn.com/cV4YIR6FUbYW/?ref=app

20th Apr 2022, 7:52 AM
bĢ¶lĢ¶aĢ¶nĢ¶kĢ¶
bĢ¶lĢ¶aĢ¶nĢ¶kĢ¶ - avatar
1 Resposta
+ 4
It's not necessary to use short declaration method if you already declared a variable. var num int for num =1; num<=10; num++ Or using short declaration method for num := 1; num <= 10; num++ You're also missing a semicolon in condition statement.
20th Apr 2022, 8:49 AM
Simba
Simba - avatar