diff --git a/ceph/.commands.txt.swp b/ceph/.commands.txt.swp deleted file mode 100644 index 2c6dfdc..0000000 Binary files a/ceph/.commands.txt.swp and /dev/null differ diff --git a/codewars/go.mod b/codewars/go.mod new file mode 100644 index 0000000..7488c70 --- /dev/null +++ b/codewars/go.mod @@ -0,0 +1,3 @@ +module main.go + +go 1.24.6 diff --git a/codewars/main.go b/codewars/main.go new file mode 100644 index 0000000..04ddcf3 --- /dev/null +++ b/codewars/main.go @@ -0,0 +1,18 @@ +package main + +import ( + "fmt" + "sort" +) + +func ExpressionMatter(a int, b int, c int) { + // your code here + array := []int{a*(b+c),a*b*c,a+b+c,a+(b*c),(a+b)*c} + sort.Ints(array) + fmt.Println(array) + fmt.Println(array[len(array)-1]) +} + +func main() { + ExpressionMatter(1,2,4) +}