Sesiones de PyR
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 Votos
3 Respuestascan someone please explain to me how moving objects are produced ? (example in games). must I use graphics.h?. how do I transform it from simply a compiled piece of code in code block to a real software?. I've been googling this for days now and I'm still confused. Please an extensive explanation would be appreciated🙏. Thanks.
p. s you can also recommend websites where I can learn more and see good sample codes.
10 Votos
5 RespuestasEn tendencia hoy
C pointers
1 Votes
Python
0 Votes
SQL
1 Votes
Guys help please
0 Votes
Slicing in python
1 Votes
Python question
1 Votes
Control flow
0 Votes
Front-end vs Full-stack
1 Votes
HTML
0 Votes