Skip to content

Commit

Permalink
Merge pull request harshilp24#77 from rashmiee/rashmiee-contribution
Browse files Browse the repository at this point in the history
Added Palindrome_Word_For Program and Updated Contributors
  • Loading branch information
harshilp24 authored Oct 4, 2020
2 parents 0f2eda1 + 7a60f5e commit bc72540
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
27 changes: 27 additions & 0 deletions C/Palindrome_Word_For.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
char c[26];
int i, j=0, b=0;
printf("Please enter a word below 26 characters : ");
scanf("%s",&c);

for(i=strlen(c)-1;i>=0;i--)
{
if(c[i]!=c[j])
{
b=1;
break;
}
j++;
}
if(b==0)
printf("\n\tThe word is Palindrome\n");
else
printf("\n\tThe word is not Palindrome\n");

return 0;
}
9 changes: 8 additions & 1 deletion Contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ Contribution: Bubble sort(c++), Fibonacci Search(c++)<br/>

Name: [Sarthak Jha](https://github.com/Sarthak-Jha) <br/>
Place: India <br/>
rashmiee-contribution
contributions: pigeonholeSort(python), bucketSort(python)

Name: [Rashmiee Prabha](https://github.com/rashmiee) <br/>
Place: Sri Lanka <br/>
Contribution: Palindrome_Word_for(C Programming)<br/>
contributions: pigeonholeSort(python), bucketSort(python)<br/>


Name: [Christa Bridges](https://github.com/cBridges851) <br/>
Place: United Kingdom <br/>
Contribution: text to speech (python) using gTTS <br/>
Contribution: text to speech (python) using gTTS <br/>

0 comments on commit bc72540

Please sign in to comment.