Write a program that read from the screen a list of 5 integers values as one dimensional array by using a loop. The main program should called the function int Darab2(int value) to multiply two of each of the 5 integers values in the input list.
#include <iostream>
#include <conio.h>
using namespace std;
void main()
{
int i, value;
int a[5];
int Darab2(int value);
cout << "Enter a list of five integers: ";
for(i = 0; i < 5; i++)
cin >> a[i];
Darab2(value);
cout << "The resulted list is " << Darab2(value) << endl;
_getch();
}
int Darab2(int value)
{
int i, a[5];
int b = 2;
for(i = 0; i < 5; i++)
cin >> a[i];
value = b * a[i];
return value;
}