Advertisement
MeehoweCK

Untitled

Nov 26th, 2020 (edited)
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string names[10];
  8.     for(int i = 0; i < 10; ++i)
  9.     {
  10.         cout << "Please enter the name of the client no " << i + 1 << endl;
  11.         cin >> names[i];
  12.     }
  13.  
  14.     cout << endl << "The names of all our clients: ";
  15.     for(int i = 0; i < 10; ++i)
  16.         cout << names[i] << ", ";
  17.  
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement