0
I solve an euclidus algorythm, that explain in book of D. Knut. I beginer in c++, and try to understand, what is wrong. T
Give me advice, pls) https://code.sololearn.com/cKu74XGSu75U/?ref=app
2 odpowiedzi
+ 2
The problem is r. It is set in this line:
if (m < n){r = m; m = n; n = r; r = 1;}
But what happens if m >= n. r will have no value.
0
No, if m >= n we already found solve. "if" skip by program