Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- int main()
- {
- char a[20], b[20]="";
- int n, m, i, j, k=0;
- cin.get(a,20);
- n=strlen(a)-1;
- for(i=n; i>=0; i--)
- {
- b[k]=a[i];
- k++;
- }
- if(strstr(a,b)!=0)
- cout<<"Corect";
- else
- cout<<"Incorect";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement