C++ Exercise 11 - Euclidean Algorithm for finding the GCF
Loading...
6,357
Loading...
Uploader Comments (hendrix5045)
see all
All Comments (21)
-
Thanks man!
-
uiy]
-
thanks man :D
-
@xiAresx , No it wont. You could send me the math problem you have though and I could do it :)
Loading...
you write an awful code just improve it
olawraia 2 months ago
@olawraia , I'll get right on that as soon as you learn some grammar.
hendrix5045 2 months ago
@hendrix5045 I wouldn't call it awful, everyone has their ways of doing something. I think he's just trying to say the same results could have been achieved with less coding.
Yondaimeku 3 weeks ago
@Yondaimeku , Instead of being condescending why don't you just explain how it could be better.
hendrix5045 3 weeks ago
@Yondaimeku simply because u unnecessarily called those strange variables divisor dividend, when you could simply do ur code in few lines like
while(b>0){ c=a%b; a=b; b=c; } cout<< a;
arHHco 4 days ago
@arHHco , strange variables? Naming variables what they actually are is programming etiquette 101. I would argue that using random letters as variables would make it much more complicated and harder to understand. That's the point of giving variables names you can relate to. However, this code was written a long time ago and I could make it more efficient, but that would not entail changing the variable names.
hendrix5045 4 days ago