Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a program to check for palindrome for an entered string in C #43 #94

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

NEEHITGOYAL
Copy link

fixed #43

int n;
printf("enter string size\n");
scanf("%d",&n);
char string[n],string2[n];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the indentation uniform!!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still not addressed @NEEHITGOYAL

@NEEHITGOYAL
Copy link
Author

indented the code as requested please check that out

#include <string.h>

int main()
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move braces in above line

int n;
printf("enter string size\n");
scanf("%d",&n);
char string[n],string2[n];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still not addressed @NEEHITGOYAL

@NEEHITGOYAL
Copy link
Author

Is it ok now

@sagar-kalra
Copy link
Contributor

screenshot from 2018-10-25 21-52-10
Your code is still not properly indented!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a program to check for palindrome for an entered string in C
3 participants