2023-05-20 17:43:02 +02:00
|
|
|
data = csvRead("data.csv");
|
2023-05-03 23:19:47 +02:00
|
|
|
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);
|
2023-05-18 17:30:25 +02:00
|
|
|
mprintf("Densité moyenne : %.2f habitants/km²\n", densite);
|