diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-11-13 19:00:06 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-11-13 19:00:06 +0100 |
commit | 13eab863735725f9a02cd4ae0b1c25725cc27569 (patch) | |
tree | 20be81c90e02f3a5dee54392435bb7baf8e7b571 /01-algorithmic_toolbox/01-intro/04-lcm/lcm.cpp | |
download | coursera-13eab863735725f9a02cd4ae0b1c25725cc27569.zip coursera-13eab863735725f9a02cd4ae0b1c25725cc27569.tar.gz |
Algorithms : add 01-algorithmic_toolbox 01-intro
Diffstat (limited to '01-algorithmic_toolbox/01-intro/04-lcm/lcm.cpp')
-rw-r--r-- | 01-algorithmic_toolbox/01-intro/04-lcm/lcm.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/01-algorithmic_toolbox/01-intro/04-lcm/lcm.cpp b/01-algorithmic_toolbox/01-intro/04-lcm/lcm.cpp new file mode 100644 index 0000000..c6f503c --- /dev/null +++ b/01-algorithmic_toolbox/01-intro/04-lcm/lcm.cpp @@ -0,0 +1,13 @@ +#include <iostream> + +long long lcm(int a, int b) { + //write your code here + return a*b; +} + +int main() { + int a, b; + std::cin >> a >> b; + std::cout << lcm(a, b) << std::endl; + return 0; +} |