Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include<iostream>
  2. #include<string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. string tekst = "przykladowy tekst dowolny zawierajacy e i d";
  8. string tekstbezd = "";
  9. string odwroconytekst = "";
  10. for (int i = tekst.length(); i>=0; i--)
  11. {
  12.  
  13. odwroconytekst = odwroconytekst + tekst[i];
  14. }
  15. cout << odwroconytekst << endl;
  16.  
  17.  
  18.  
  19.  
  20.  
  21. system("PAUSE");
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement