skydriver@skydriver-desktop:~/Desktop$ gcc palindrome.c -o test.c
skydriver@skydriver-desktop:~/Desktop$ ./test.c
Please enter input string: kajgana
Current string = ka, reversed string = ak.
ka != ak, hence ka is not a palindrome.
Current string = aj, reversed string = ja.
aj != ja, hence aj is not a palindrome.
Current string = jg, reversed string = gj.
jg != gj, hence jg is not a palindrome.
Current string = ga, reversed string = ag.
ga != ag, hence ga is not a palindrome.
Current string = an, reversed string = na.
an != na, hence an is not a palindrome.
Current string = na, reversed string = an.
na != an, hence na is not a palindrome.
Current string = kaj, reversed string = jak.
kaj != jak, hence kaj is not a palindrome.
Current string = ajg, reversed string = gja.
ajg != gja, hence ajg is not a palindrome.
Current string = jga, reversed string = agj.
jga != agj, hence jga is not a palindrome.
Current string = gan, reversed string = nag.
gan != nag, hence gan is not a palindrome.
Current string = ana, reversed string = ana.
ana = ana, hence ana is a palindrome.
Current string = kajg, reversed string = gjak.
kajg != gjak, hence kajg is not a palindrome.
Current string = ajga, reversed string = agja.
ajga != agja, hence ajga is not a palindrome.
Current string = jgan, reversed string = nagj.
jgan != nagj, hence jgan is not a palindrome.
Current string = gana, reversed string = anag.
gana != anag, hence gana is not a palindrome.
Current string = kajga, reversed string = agjak.
kajga != agjak, hence kajga is not a palindrome.
Current string = ajgan, reversed string = nagja.
ajgan != nagja, hence ajgan is not a palindrome.
Current string = jgana, reversed string = anagj.
jgana != anagj, hence jgana is not a palindrome.
Current string = kajgan, reversed string = nagjak.
kajgan != nagjak, hence kajgan is not a palindrome.
Current string = ajgana, reversed string = anagja.
ajgana != anagja, hence ajgana is not a palindrome.
Current string = kajgana, reversed string = anagjak.
kajgana != anagjak, hence kajgana is not a palindrome.