Hi there
This is my code, nothing happens at the output.
What did i do wrong.
No syntax error and no debug pb.
Tks a lot.
var n1:int;
var n2:int;
var reponse:int;
function pgcd(a:int,b:int):int
{
if (b==0)
{
return a;
}
else
{
return pgcd(b, a % b);
}
}
n1 = 27;
n2 = 18;
reponse = pgcd(n1,n2);
trace("Le PGCD de " + n1 + " et de " + n2 + " est " + reponse + ".");
