Browse Source

Merge pull request #475 from 01-edu/lcm-fix

correcting and adding cases to lcm subject
content-update
OGordoo 4 years ago committed by GitHub
parent
commit
39168800f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      subjects/lcm.en.md

11
subjects/lcm.en.md

@ -15,7 +15,7 @@ This means that:
Write a function, `lcm`, that returns least common multiple.
All arguments tested will be positive `int` values.
It will be tested with positive `int` values and `0`.
### Expected function
@ -32,13 +32,9 @@ Here is a possible program to test your function :
```go
package main
import (
"fmt"
piscine ".."
)
func main() {
fmt.Println(piscine.Lcm(2, 7))
fmt.Println(Lcm(2, 7))
fmt.Println(Lcm(0, 4))
}
```
@ -48,5 +44,6 @@ func main() {
student@ubuntu:~/[[ROOT]]/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test
14
0
student@ubuntu:~/[[ROOT]]/test$
```

Loading…
Cancel
Save