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 AnswersI need to design a recursive function called replicate recur which will receive two arguments: times which is the number of times to repeat and data which is the number or string to be repeated.
The function should return an array containing repetitions of the data argument.
For instance, replicate_recur (3, 5) should return [5,5,5].
If the times argument is negative or zero, return an empty array. If the argument is invalid, raise ValueError.
0 Votes
4 AnswersHot today
What’s wrong with this???
2 Votes
What's wrong with these codes?
1 Votes
What can i do with bits
3 Votes
Arrays
0 Votes
Is it A Bug or A Feature?
0 Votes
Guys, it’s about streak
0 Votes
html
2 Votes
I don't get it
0 Votes