Q&A Discussies
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 Stemmen
3 AntwoordenPopulair vandaag
Decorators in python.
2 Votes
Need help
1 Votes
Pointers in c#
1 Votes
How to install Bcrypt here
1 Votes
Please click me
0 Votes
Hello !
0 Votes
Help
1 Votes