Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- using namespace std;
- char a[100];
- int main()
- {
- int st,dr,ok,n;
- st=0;
- dr=n;
- ok=0;
- n=strlen(a)-1;
- while (st<dr)
- {
- if(a[st]!=a[dr])
- {
- ok++;
- break;
- }
- dr--;
- st++;
- }
- if(ok=0)
- {
- cout<<DA;
- }
- else
- {
- cout<<NU;
- }
- }
Add Comment
Please, Sign In to add comment