dimanche 29 mai 2016

Expression or statement incorrect or possibly unbalanced (MATLAB)

if ((x % 2) == 1)
x = x - 1;
end

I don't get what I did wrong and can't find anything online, it's suppose to make a number even by subtracting 1 if it's odd btw.

Aucun commentaire:

Enregistrer un commentaire