Discussões Q&A
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 Voto
3 RespostasPopular hoje
I need help
1 Votes
My hearts are disappering :(
0 Votes
a phone or a laptop
0 Votes
Pressure and tension
2 Votes
Where is code bit
0 Votes
Java IDE for building a game.
0 Votes