Skip to content

Instantly share code, notes, and snippets.

@nuryslyrt
Created November 19, 2011 22:21
Show Gist options
  • Save nuryslyrt/1379452 to your computer and use it in GitHub Desktop.
Save nuryslyrt/1379452 to your computer and use it in GitHub Desktop.
aynılar mı değiller mi?
#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