Alex_Fuleki21

siruri pb4

Nov 19th, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstring>
  3. using namespace std;
  4. char a[100];
  5. int main()
  6. {
  7. int st,dr,ok,n;
  8. st=0;
  9. dr=n;
  10. ok=0;
  11. n=strlen(a)-1;
  12. while (st<dr)
  13. {
  14. if(a[st]!=a[dr])
  15. {
  16. ok++;
  17. break;
  18. }
  19. dr--;
  20. st++;
  21. }
  22. if(ok=0)
  23. {
  24. cout<<DA;
  25. }
  26. else
  27. {
  28.  
  29.  
  30. cout<<NU;
  31. }
  32.  
  33. }
Add Comment
Please, Sign In to add comment