Advertisement
MeehoweCK

Untitled

Jul 7th, 2021
677
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string adresy[5];       // tablica piÄ™cioelementowa typu string
  8.     int i = 0;
  9.     while(i < 5)
  10.     {
  11.         cout << "Podaj adres e-mail osoby nr " << i + 1 << ": ";
  12.         cin >> adresy[i];
  13.         ++i;
  14.     }
  15.     i = 0;
  16.     while(i < 5)
  17.     {
  18.         cout << i + 1 << ". " << adresy[i] << endl;
  19.         ++i;
  20.     }
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement