Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- char ch[50];
- char ch1[50];
- int test,i;
- printf ("Donner votre mot: ");
- scanf ("%s",ch);
- do
- {
- test=ch[i]==ch[(strlen(ch)-1)-i];
- i++;
- }while (test==1 && i<strlen(ch));
- if (test==1)
- {
- printf ("\nLe mot est palindrome");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement