josiftepe

Untitled

Nov 8th, 2020
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. // korisnikot vnesuva eden zbor, i treba da gi ispecatime bukvite na zborot taka sto ke ima prazno mesto pomegu sekoja bukva
  6. // primer:word; treba da ispecatime (w o r d)
  7.  
  8.  
  9. void pecati(string s) { // void znaci deka nema da ni vraka nikakva vrednost ovaa funkcija
  10. for(int i = 0; i < s.size(); i++) {
  11. cout << s[i] << " ";
  12. }
  13. }
  14. int main()
  15. {
  16. string zbor;
  17. cin >> zbor;
  18. pecati(zbor);
  19.  
  20. return 0;
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment