Created
November 19, 2011 22:21
-
-
Save nuryslyrt/1379452 to your computer and use it in GitHub Desktop.
aynılar mı değiller mi?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int main() | |
{ | |
int a=0, b=0, c=0; | |
char cumle[9999], kontrol[9999]; | |
puts("stringi gir bakalim\n"); | |
scanf("%s", cumle); | |
b = strlen(cumle); | |
for(a=b-1; a>=0; a--) | |
{ | |
kontrol[c] = cumle[a]; | |
c++; | |
} | |
if(!strcmp(cumle,kontrol)) | |
printf("Bunlar aynilar bence!\n"); | |
else | |
printf("Olmaz böyle olmaz.\n ", puts(kontrol)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment