write a program in c++ that prompts the used to enter 50 intergers and stores them in an array. the program then determines and outputs which numbers in the array are sum of the two other array elements. If an array element is the sum of two other array elements, then for this array element, the program should output all such pairs. use the below code to write the defention of the functions.
#include #include using namespace std;void initialize(double list[], int size);void print(double list[], int size);int main(){double alpha [50];initialize(alpha, 50);print(alpha, 50);return 0;}
#include using namespace std;void initialize(double list[], int size);void print(double list[], int size);int main(){double alpha [50];initialize(alpha, 50);print(alpha, 50);return 0;}
using namespace std;
void initialize(double list[], int size);
void print(double list[], int size);
int main()
{
double alpha [50];
initialize(alpha, 50);
print(alpha, 50);
return 0;
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here