package main
import"fmt"func findGCD(a, b int) int {
if b == 0 {
return a
}
return findGCD(b, a%b)
}
func findLCM(a, b int) int {
return a * b / findGCD(a, b)
}
func main() {
fmt.Println(findGCD(25, 100))
fmt.Println(findLCM(25, 100))
}
Thank you for reading!
···
Love This Content?
Any kind of supports is greatly appreciated! Kindly support me via Bitcoin, Ko-fi, Trakteer, or just continue to read another content. You can write a response via Webmention and let me know the URL via Telegraph.