8 lines
323 B
Scilab
8 lines
323 B
Scilab
data = csvRead("data.csv");
|
|
surface = sum(data(:, 2)*1000);
|
|
population = sum(data(:, 3)*1000000);
|
|
densite = population / surface;
|
|
mprintf("Surface terrestre mondiale : %d km²\n", surface);
|
|
mprintf("Nombre d''habitants mondial : %.0f habitants\n", population);
|
|
mprintf("Densité moyenne : %.2f habitants/km²\n", densite);
|