Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobierenF&A Diskussionen
[CHALLENGE] avg (average) function
15 Stimmen
13 AntwortenWhat is the AVG main concept?
1 Stimme
8 AntwortenWhy Avg output is float?
1 Stimme
2 AntwortenSql
0 Stimmen
4 AntwortenSQL
0 Stimmen
5 Antwortendouble 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 Stimmen
3 AntwortenHeute heiß
What's the error in this code?
1 Votes
Py to Exe
0 Votes
How to find image links
0 Votes
I don’t know why but python seems to be harder than java to me does any body else fell like this?
0 Votes
What's wrong with my code?
0 Votes
TIMER
0 Votes