Sesiones de PyR
double arr[]={5,2,7,8,11,9};
int n = sizeof(arr) / sizeof(arr[0]);
double sum = 0;
for(int i=0;i<n;i++)
{
sum+= arr[i];
}
double avg = sum / n;
cout<< "avarage ="<< avg<< endl;
return 0;
)
/*what does int n= sizeof(arr[]) /sizeof(arr[0]);
do, can someone explain that line for me*/
0 Votos
3 RespuestasEn tendencia hoy
Kernel in Jupyter
2 Votes
SQL
2 Votes
JAVA PROGRAMMING
2 Votes
What Does Pseudo Elements Mean.
2 Votes
HTML/CSS questions
0 Votes
IMAGE
0 Votes
#solvedQuene management
1 Votes