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
33
u/[deleted] Sep 14 '18
shittyprogramming hat removed
If you actually want help, you should probably go to a different subreddit. This one is kind of a joke subreddit about really, really bad code. I would suggest posting the exact wording (a snippet of an assignment copy-pasted if possible) and then maybe people can help you. But I would do it on /r/learnprogramming or something, this isn't the right place.
shittyprogramming hat unremoved
Precalculating is your friend.
Before you know it, you'll have what we software engineers like to call a look up table!