Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <cmath>
- #include <string>
- using namespace std;
- int main()
- {
- int j=0;
- string imie;
- string wyraz;
- cout<<"podaj imie: ";
- cin>>imie;
- int dl = imie.length();
- j = dl-1;
- for(int i=0; i<dl-1;i++)
- {
- cout<<"dsx";
- wyraz+= imie[i];
- j--;
- }
- cout<<endl<<wyraz;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment