r/shittyprogramming • u/FritangadeLuka420 • Sep 14 '18
Beginning in C++
I'm working in a small homework and the last step is calculate the least common multiple but with easy steps like if or something like that, could someone help me?
14
Upvotes
View all comments
Show parent comment
11
u/hydrocyanide Sep 14 '18
I can't tell if this is a real solution because, without running it, it sure looks like it will just be a big stack overflow. It's recursion without a base case.