Piet Souris wrote:A minor detail: what if both a and b are 0? You are not using any curly brackets, so I find it hard to tell if your final line (print a; juast before the return) will then be printed. If so, then beware: there is no GCD when both operands are 0.
Carey Brown wrote:You are still missing the LOOP. See the colored flow chart I posted. Note the light blue area and how the direction lines come around and back in above the comparison.
Junilu Lacar wrote:
Erik Lundin wrote:Hey!
Would it be too much of me to ask you to show me what your solution to this would be?
We try to avoid doing that, especially when it involves homework. We want to avoid any situation where CodeRanch could be accused of helping students cheat on their homework. It's sometimes hard to strike a balance because sometimes a concrete example is really what would help the learner best but then again, we can't compromise the reputation of our site. See https://coderanch.com/wiki/659991/Code-Mill for more on why we do this.
Carey Brown wrote:
Campbell Ritchie wrote:
That's a pleasureErik Lundin wrote:Thank you!
No.. . . It's not telling me what state the water is in now or whether or not I'm swimming right now?
Yes You have got that bit correct.But the fact will remain the same, always. that if the water is warm, then erik will be swimming?