Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string imie;
- cout<<"podaj imie"<<endl;
- cin>>imie;
- int dlugosc=imie.length();
- if (imie[dlugosc-1]=='a')
- cout<<"wydaje mi sie ze jestes kobieta";
- else cout<<"wydaje mi sie ze jestes facetem";
- {
- int dlugosc = imie.length();
- for (int i=dlugosc-1; i>=0; i--)
- {
- cout<<"twoje imie od tylu to:"<<;
- cout<<imie[i];
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement