+ 1
errors {fixed}
Why does this code outputs 2 errors https://code.sololearn.com/cV4YIR6FUbYW/?ref=app
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.