Guest User

Untitled

a guest
Feb 21st, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <cmath>
  4. #include <string>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.  
  11. int j=0;
  12.  
  13. string imie;
  14. string wyraz;
  15. cout<<"podaj imie: ";
  16. cin>>imie;
  17. int dl = imie.length();
  18. j = dl-1;
  19.  
  20. for(int i=0; i<dl-1;i++)
  21. {
  22.         cout<<"dsx";
  23.         wyraz+= imie[i];
  24.         j--;
  25. }
  26.  
  27.         cout<<endl<<wyraz;
  28.        
  29.        
  30.         return  0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment