SHARE
TWEET

Untitled

a guest Feb 24th, 2020 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Start here
  2.  
  3. 2.
  4.  
  5. prog2_32.pp X 7 na wale e LOW jest palindromem
  6.  
  7. #include <iostream> #include <cstring> using namespace
  8.  
  9. std;
  10.  
  11. bool sprawdz (string s)
  12.  
  13. int dl=s. size ; for (int i=0;i<dl/2; i++)
  14.  
  15. if (s[i] ! =s[dl-i-1]) return return true;
  16.  
  17. 10 11 12 13
  18.  
  19. 14
  20.  
  21. main
  22.  
  23. 15 16
  24.  
  25. 17
  26.  
  27. 18
  28.  
  29. 19
  30.  
  31. 20
  32.  
  33. string s; cout<<"podaj wyraz:
  34.  
  35. cin>>S; if else cout<<"\słowo "<<<<" nie jest palindromem"<<endl; (sprawdz (s) cout<<"\słowo "<<<<" jest palindromem"<<endl;
  36.  
  37. 21
  38.  
  39. 22
  40.  
  41. return 0;
  42.  
  43. 23
  44.  
  45. 24
  46.  
  47. false;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top