+ 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 Antwort
+ 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