Q&A Discussões
n = int(input())
-1 Voto
4 Respostasdouble 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 RespostasCan you help me in this code?
-4 Votos
9 RespostasQuente hoje
Python and unsigned int
0 Votes
Saturn League badge
1 Votes
Lua course?
1 Votes
certificate
1 Votes
Adding an image to my html
0 Votes
Not able to activate account
0 Votes
CSS
1 Votes
Sololearn keeps crashing
0 Votes
About Advanced Courses
0 Votes