Advertisement
pan7nikt

Inicjaly

Mar 4th, 2020
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. //Uzytkownik podaje imie i nazwisko. Program podaje inicjaly
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. string imie;
  7. string nazw;
  8. char i;
  9. char n;
  10.  
  11. main()
  12. {
  13.     cout << "Imie: ";
  14.     cin >> imie;
  15.     cout << "Nazwisko: ";
  16.     cin >> nazw;
  17.     cout << imie[0] << "." << nazw[0];
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement