+ 5
C++
How can we find common factors of two integers?
10 Answers
+ 13
This works for n integer:
https://code.sololearn.com/cheiBr290ubx
Note: Your last number must be 0 to terminate the loop
+ 10
That's not my code dear. I usually don't use preprocessor directives for defining constants.
+ 8
Don't be upset Swim! ;)
I mentioned to source website for clarification.
BTW, congratulations for teacher badge!
@~)~~~~
+ 7
Because a lot of learners expect you to provide them answers real quick. So as a result in some rare cases I have to borrow others code [those that are outside of SL- like tutorial websites etc]
That's a good thing in fact. But it really depends on your point of view of sharing and that kinds of things.
Good luck Teacher. ;)
+ 1
@Babak, why "define TRUE 1" when Cpp has bool type ? :o
+ 1
I think you are true @Babak, but the code you shared is not bad practice proof :/
0
Oh ok, I thought so ! Sorry, my mistake !