Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <ctype.h>
- #include <string.h>
- int main()
- {
- char niza[50];
- scanf("%s", niza);
- int S = 0;
- int E = strlen(niza) - 1;
- while(S < E) {
- if(niza[S] == niza[E]) {
- S++;
- E--;
- }
- else {
- printf("Zborot ne palindrom");
- return 0;
- }
- }
- printf("Zborot e palindrom");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement