Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Start here
- 2.
- prog2_32.pp X 7 na wale e LOW jest palindromem
- #include <iostream> #include <cstring> using namespace
- std;
- bool sprawdz (string s)
- int dl=s. size ; for (int i=0;i<dl/2; i++)
- if (s[i] ! =s[dl-i-1]) return return true;
- 10 11 12 13
- 14
- main
- 15 16
- 17
- 18
- 19
- 20
- string s; cout<<"podaj wyraz:
- cin>>S; if else cout<<"\słowo "<<<<" nie jest palindromem"<<endl; (sprawdz (s) cout<<"\słowo "<<<<" jest palindromem"<<endl;
- 21
- 22
- return 0;
- 23
- 24
- false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement