online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> void Afficher_Tab(int n, int t[]){ for(int i=0 ; i<n ; ++i) printf("%d\t", t[i]); puts(""); } void Saisir_Tab(int n, int t[]){ printf("Merci de saisir les %d elements de votre tableau :\n",n); for(int i=0 ; i<n ; ++i){ printf("T[%d] : ", i); scanf("%d", &t[i]); } } double Moyenne_Tab(int n, int t[]){ int s=0; for(int i=0 ; i<n ; ++i){ s = s+t[i]; } return (double)s/n; } int main(void){ int n; do { printf("Combien d'elements dans le tableau (MAX=100) ? "); scanf("%d",&n); } while (n>100); int a[n]; Saisir_Tab(n, a); Afficher_Tab(n, a); printf("La moyenne est : %g\n", Moyenne_Tab(n, a)); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue