bonjour à tous j'ai un ptit soucis pour un exo
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 #define N 69 #include <stdio.h> int main() { int n; float sigma=0; printf("N vaut %d\n",N); for (n=1; n <= N; n++) { sigma = sigma + 1.0; } printf("somme calculee = %f\n",sigma); return 0; }
quand N est plus petit que 16777216 , ca marche ... quand N est plus grand ca marche plus , quelqu'un saurait il à quoi c'est du ? à la précision , sans aucun doute
Partager