Sesiones de PyR
Cout<<
0 Votos
3 RespuestasCout<< help
0 Votos
3 RespuestasWhat is meant by cout<<
4 Votos
8 RespuestasSomething weird in c++
3 Votos
7 Respuestasdouble 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
Audio adding
1 Votes
C#
0 Votes
%
0 Votes
Stuck in Quize
1 Votes
C Program
0 Votes
What is problem in this code
0 Votes
Software developer
0 Votes