diff --git a/challenge-1/submissions/cckwes/solution-template.go b/challenge-1/submissions/cckwes/solution-template.go new file mode 100644 index 000000000..ff3116687 --- /dev/null +++ b/challenge-1/submissions/cckwes/solution-template.go @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" +) + +func main() { + var a, b int + // Read two integers from standard input + n, err := fmt.Scanf("%d, %d", &a, &b) + if err != nil || n != 2 { + fmt.Println("Error reading input:", err) + return + } + + // Call the Sum function and print the result + result := Sum(a, b) + fmt.Println(result) +} + +// Sum returns the sum of a and b. +func Sum(a int, b int) int { + return a + b +}