SAE_S2.04/Exo2/Question6.sce

14 lines
455 B
Scilab
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Déterminer les valeurs du premier et du troisième quartile
Q1 = esperanceHomme(ceil(length(esperanceHomme)/4));
Q3 = esperanceHomme(ceil(3*length(esperanceHomme)/4));
// lécart inter-quartile de la colonne homme
ecartInterQuartile = Q3 - Q1;
// liste des pays dont lespérance de vie est inférieure au premier quartile
for i = 1:length(esperanceHomme)
if (esperanceHomme(i) < Q1)
mprintf("%s\n", pays(indice(i),1));
end
end