+ 1

What is the mistake here? Can any one tell me?

package main import "fmt" func main() { items := 1081 r=items%7 fmt.Println(r) } test case failed...since it is hidden test case can't understand the error....

29th Sep 2022, 4:18 AM
Venkatesh
Venkatesh - avatar
2 Answers
+ 1
Inside main function your <r> variable is undefined you need to declare it
29th Sep 2022, 5:16 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Thank you...I didn't noticed it
29th Sep 2022, 7:40 AM
Venkatesh
Venkatesh - avatar