New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
forEach Question...
0 Votes
1 Answerwhat is tjis code problem!
#include <iostream>
using namespace std;
int main()
{
int b = 5;
int arr[b] = {11, 35, 62, 555, 989};
int sum = 0;
for (int x = 0; x < 5; x++) {
sum += arr[x];
}
cout << sum << endl;
return 0;
}
I cannot make an array using int variable in order to define array's element number!?
1 Vote
7 AnswersSorting in C
0 Votes
1 AnswerThrow Course
0 Votes
1 Answerfind the largest element
-1 Vote
3 AnswersWrite a program that uses a dynamic array that contains 5 items of double values. The size of the array is entered when the program is run. Aldo the 5 values must be entered. These tasks are done in the main ( ) function. Then write a function to display the 5 values. The function must have a pointer variable as a parameter. The function is called from the main ( ).
0 Votes
2 AnswersI need help
0 Votes
3 AnswersHow to use random in C#?
-1 Vote
2 AnswersHelp please with this task
-1 Vote
3 Answersfind the misstake plz......
0 Votes
1 AnswerNested list in python
0 Votes
2 AnswersHelp me fix this code
1 Vote
1 AnswerI can not figure this out. Write a program using an array to prompt for 10 grades and add them all up and divide by 10 to find the average. If a user inputs a negative number, add up all the numbers that are not negative and divide it by the amount of numbers that are not negative. Using two functions other than main.
1 Vote
4 AnswersHot today
Questions
0 Votes
Remove from a slice of a list
1 Votes
Why it's giving error
1 Votes
HTML CSS - Filter: brightness()
0 Votes
Need help pls
1 Votes
Questions
0 Votes
python courses
0 Votes