Commit e9fd2c64 authored by Devang Goradia's avatar Devang Goradia
Browse files

after changing signature of function

parent 65b7c07f
package calc
func Add(i int, j int) int {
return i + j
func Add(numbers ...int) int {
for _, num := range numbers {
sum = sum + num
}
return sum
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment