Hello,
Euklid[a0_, b0_] :=
Module[
{a = a0, b = b0},
While[a*b != 0, {a, b} = {b, Mod[a, b]}];
a
];
did work fine. How can I define a new function that gives me the GCD of two numbers without using the command "Module" and without using the way above when it says "{a,b} = {b, Mod[a,b]}". I mean: Without writing two commands into { and }. I separately want to tell mathematica: a = b and b = Mod[a,b].
Thank you for your help