---
title: "Discussion on \"Greatest Common Divisor and Least Common Multiplier\" | Hashnode"
description: "Discussion on \"Greatest Common Divisor and Least Common Multiplier\". I only rewrite what was written on my pastebin\npackage main\n\nimport \"fmt\"\n\nfunc findGCD(a, b int) int {\n  if b == 0 {\n    return a\n  }\n\n  return findGCD(b, a%b)\n}\n\nfunc findLCM(a, b int) int {\n  return a * b / findGCD(a, b)\n}\n\nfunc main() {\n  fmt.Pri..."
url: "https://hashnode.com/posts/greatest-common-divisor-and-least-common-multiplier/5ffb3862aa5c467fe1559b6a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Greatest Common Divisor and Least Common Multiplier](https://clavinjune.hashnode.dev/greatest-common-divisor-and-least-common-multiplier?utm_source=hashnode&utm_medium=feed)

I only rewrite what was written on my pastebin 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.Pri...

Jan 10, 2021 · 1 min read · clavinjune.hashnode.dev  
Read the article

## Written by

[Clavianus Juneardo](https://hashnode.com/@ClavinJune)

@ClavinJune

  
[View profile](https://hashnode.com/@ClavinJune)

A bunch of perceptrons

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
