#include <cstdlib>
#include <iostream>
usingnamespace std;
int main()
{
double salary[6];
for (int i = 0; i < 6; i = 1+1)
{
salary[i] = 0.0;
}
cout << "You will be asked to enter the salary for 6 workers."<< endl;
for (int i = 0; i < 6; i = i+1)
{
cout << "Enter salary for a worker: ";
cin >> salary[i];
}
cout << endl;
cout << "The salaries you entered are: "<< endl;
for (int i = 0; i < 6; i = i+1)
{
cout << salary[i] << endl;
}
system("pause");
return 0;
}