Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 4.
- #include<iostream>
- #include<cstring>
- using namespace std;
- char x[256];
- int main()
- {
- int gresite=0,st,dr;
- cin>>x;
- st=0;
- dr=strlen(x)-1;
- while(st<dr)
- {
- if(x[st]==x[dr])
- {
- gresite++;
- break;
- }
- sr--;
- dr--;
- }
- if(gresite==0)
- {
- cout<<"da";
- }
- else
- {
- cout<<"nu";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement