Advertisement
fteussh

what the hell??

Aug 26th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.  
  8.   char arr[]="aaрaaujaaaa";
  9.   int i = 0;
  10.   int len = strlen(arr);
  11.  
  12.   for (i = 0; i <= (len / 2); i++){
  13.     if (arr [i] != arr [len - i - 1] ) {
  14.     cout << "No" << endl;
  15.     break;
  16.     } else {
  17.       cout << "Yes" << endl;
  18.     }
  19.   }
  20.  
  21.   return 0;
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement