Untitled diff

Créé Le diff n'expire jamais
7 suppressions
11 lignes
1 ajout
6 lignes
int maxValue = ABS(x[0]);
int maxValue = ABS(x[0]);
if (n > 1) {
for (i = 1; i < n; i++) {
for (i = 1; i < n; i++) {
maxValue = MAX(maxValue, ABS(x[i]);
int currentValue = ABS(x[i])
if (currentValue > maxValue) {
maxValue = currentValue;
}
}
}
}
return maxValue;
return maxValue;