document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include  <stdlib.h>
  2. #include  <iostream>
  3. #include  <string.h>
  4.  
  5. int palindrom(int n,char napis[]){
  6.  
  7. for(int i=0;i<(n/2);i++){
  8.     if(napis[i]!=napis[n-1-i])
  9.     {
  10.         return 0;
  11.     }
  12. }
  13. return 1;
  14.  
  15. }
  16.  
  17. int main(){
  18. system("cls");
  19.  
  20. char napis[]="ANA";
  21. int n=sizeof(napis)-1;
  22.  
  23. if(palindrom(n,napis)==1){
  24. printf("Jest anagramem");
  25. }else{
  26. printf("Nie jest");
  27. }
  28.  
  29. }
');