Dyskusje 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 głosów
3 odpowiedziPopularne dzisiaj
Convert Animated SVG to PNG
1 Votes
Font size
0 Votes
My Missing Courses
1 Votes
Mobile
0 Votes
Are '\0' and NULL the same?
1 Votes
Number addition
0 Votes
I need help here
1 Votes
why isnt my code working?
1 Votes