From ff1fff2f15b1923ed5547e6df4baab0865c2b244 Mon Sep 17 00:00:00 2001 From: "go-interview-practice-bot[bot]" <230190823+go-interview-practice-bot[bot]@users.noreply.github.com> Date: Fri, 7 Nov 2025 15:54:11 +0000 Subject: [PATCH] Add solution for Challenge 1 --- .../iamsurajmandal/solution-template.go | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 challenge-1/submissions/iamsurajmandal/solution-template.go diff --git a/challenge-1/submissions/iamsurajmandal/solution-template.go b/challenge-1/submissions/iamsurajmandal/solution-template.go new file mode 100644 index 00000000..b72bd540 --- /dev/null +++ b/challenge-1/submissions/iamsurajmandal/solution-template.go @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" +) + +func main() { + var a, b int + // Read two integers from standard input + _, err := fmt.Scanf("%d, %d", &a, &b) + if err != nil { + 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 +}