¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuitaSesiones de PyR
Java Question
3 Votos
4 RespuestasBig O Help
-1 Voto
6 RespuestasC programming
-2 Votos
1 Respuestadouble 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 Respuestaswhere did the error go
0 Votos
1 Respuesta1
1 Voto
6 Respuestasa)Write a function ‘rev’ which returns the reverse of the given integer. Function isPalin takes an integer as argument and checks whether it is palindrome or not using rev function. Using isPalin write a main function to accept n integers and display number of palindrome numbers found.
b)write a program to find the possible permutations of the given word .
0 Votos
2 Respuestasin order to find the sum of n numbers given by user,suppose our program is to find the sum of any 4 numbers given by user (using while loop such that (while(i<=4))and incrementing each value of i by 1),if the user give any 2 inputs instead of four then the total sum should be the summation of that two inputs..but the program shows the sum something else,why it is so??
2 Votos
3 RespuestasWrite a java program that generates the binomial coefficients for (x +y)^14 prints them, separated by a comma and a space use a loop or loops to increment the integer n and k after they are initialized.
Hint:for the above problem the coefficients ate the 15th row of pascal triangle
0 Votos
2 RespuestasEn tendencia hoy
Help with c++ code
1 Votes
Dynamic library lib file
0 Votes
Does everyone get this for free?
4 Votes
[Solved] What will happen if we don't delete an array created by using Dynamic Memory in C++?
1 Votes
HTML5 canvas
1 Votes
Jobs
3 Votes
Help me
0 Votes