Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- string adresy[5]; // tablica pięcioelementowa typu string
- int i = 0;
- while(i < 5)
- {
- cout << "Podaj adres e-mail osoby nr " << i + 1 << ": ";
- cin >> adresy[i];
- ++i;
- }
- i = 0;
- while(i < 5)
- {
- cout << i + 1 << ". " << adresy[i] << endl;
- ++i;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment