for(int x = 0; x <= 2; x++){
cout << z << x + 1 << ". bank: ";
cin >> y;
money[x] = y;
}for(int x = 0; x <= 2; x++){
money[x];
cout << z << x + 1 << ". bank is " << money[x] << " dollars." << endl;
}
}
int main()
{
int y;
int money[3];
for(int x = 0; x <= 2; x++){
cout << "Enter the amount of money for your " << x + 1 << ". bank: ";
cin >> y;
money[x] = y;
}for(int x = 0; x <= 2; x++){
money[x];
cout << "Your amount of money in the " << x + 1 << ". bank is " << money[x] << " dollars." << endl;
}