#include <stdio.h>#include <stdlib.h>int main(){ int nombre[] = {0}, somme = 0, taille = 0, i = 0; printf("ecrivez le nombre de chiffre qui vont etre calcule\n\n"); scanf("%d", &taille); printf("ecrivez successivement vos chiffres\n"); while( i < taille ) { scanf("%d", nombre[i]); i++ } somme = sommeTableau(); printf("la somme de ces chiffres est : %d\n\n", somme); system("PAUSE"); return 0;} long sommeTableau(long nombre[], long taille){ long somme = 0; long i; for (i = 0 ; i < taille ; i++) { somme += nombre[i]; } return somme;}