Write a program to check whether inputted string is palindrome or not.
#include <stdio.h>
#include <string.h>
int main()
{
char s[1000];
int i,n,c=0;
printf("Enter the string : ");
gets(s);
n=strlen(s);
for(i=0;i<n/2;i++)
{
if(s[i]==s[n-i-1])
c++;
}
if(c==i)
printf("string is palindrome");
else
printf("string is not palindrome");
return 0;
}
Log in, to leave a comment
Are there any code examples left?
New code examples in category Other
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Relative searches
how to check given string is palindrome or not
Given a string, write a function that checks if the input is a valid palindrome
checking palindrome from user input
How many loops are required to check if string is palindrome or not?*
program to check number is palindrome or not in c++
WAP that takes a string as input and print Palindrome if the string is a palindrome.A palindrome is a string that is the same after reversing it.
there a function to check whether a string is palindrome
codesignal Given a string, write a function that checks if the input is a valid palindrome.
no of palindromes in a string
Write code to check if a String is palindrome or not?
how to find palindromes in code
check whether null string is palindrome or not
check if number is a palindrome math
check given string is palindrome or not
given string is palindrome or not
generating a string that is not palindrome or
number of palindromes in string with length n
number of palindromes in a string
algorithm WAP to check user entered number is palindrome or not.
Write a C program to check whether a string is palindrome.
write code of checking palindrome number or not
Write a program that reads a string and checks whether it is a palindrome string or not.
write a program that will take a string as input and print whether the string is true palindrome or not
optimized approach for checking if string is palindrome
A string is an almost-palindrome if by changing only one character, you can make it a palindrome. Create a function that returns True if a string is an almost-palindrome and False otherwise
A string is an almost-palindrome if by changing only one character, you can make it a palindrome. Create a function that returns True if a string is an almost-palindrome and False otherwise.
Given a string S, check if it is palindrome or not.
check if input string is palindrome or not in cpp
Write a function that returns 1 if a string is a palindrome and 0 if not.
check if string ic palindromic
program to check if string is palindrome
how to check if input is palindrome
check if the given string is a palindrome or not
Given a string, write a function to check if it is a permutation of a palindrome.
Write a program to check if a user given number is Palindrome number. User should give only one input.
method to check if input String is Palindrome
number of possible palindromes of a given string
check string is palindrome or not gfg practice
how to find palindromes in string
How do you check if a given string is a palindrome? gfg practice
Write a C program to check whether a string is palindrome or not.
Write program for string is palindrome or not p
check if a string is palindrome without using library function
check string palindrome algorithm
check number is palindrome or not
Write a program in C to check whether a user given number is Palindrome or Not.
Write a program to accept a number and check if it is a palindrome.
check if an integer is a palindrome or not
palindrome is a number or a. write a program that in a five characters long sting and determines whether its a palindrome.
palindrome is a number or a. write a program that in a five characters long sting and determines whether it’s a palindrome.
5. WACP to check whether a number is palindrome or not.
write a string palindrome program.
program to find a string is palindrome or not
7. Write a function which will check if a given string is palindrome or not
Write a program to accept a number and check if it is a palindrome. A number is said to be palindrome if it is equal to its reverse eg:121, 1331, 25452
program to find palindrome
how to check if we make a number palindrome or not
Write a program to check how may palindrome strings with different lengths exists int a given palindrome string.
check if a string can be arranged as a palindrome
Test 2: Check Logic for not a palindrome when input is in initcap Test 1: Check Logic for palindrome when input is in lowercase
smaller palindromes than a string
Write a Program to check if a given String is Palindrome or not. in c++
how to detect palindrome in code
Get a string as input and check the given string is palindrome or not without using built-in function for compariso chegg
program to check palindrome string
how to check if string is palindrome
Get a string as input and check the given string is palindrome or not without using built-in function for comparison. chegg
Write a program that determines whether a sentence entered by the user is a palindrome or not.
Palindrome Number Write a program which takes a number as an input and find out whether the number is a palindrome or not. Whitehat Jrcolab
Palindrome Number Write a program which takes a number as an input and find out whether the number is a palindrome or not. colab
Palindrome Number Write a program which takes a number as an input and find out whether the number is a palindrome or not. collab
Palindrome Number Write a program which takes a number as an input and find out whether the number is a palindrome or not.
Write a Program to findout a string is a palindrome or not
check if string is palindrome Independently Testable Functions
program to check number is palindrome or not
check string is palindrome or not
test cases for a palindrome program
Write a program to check if the given input string is palindrome or not, if palindrome then reverse it.
Write a c++ program to check if the given input string is palindrome or not, if palindrome then reverse it.
write a program to check whether a number is palindrome or not using while loop
check if given number is palindrome number or not
number is palindrome or not
find palindrome in string
check if substring in string is a palindrome
Write a script to determine whether the entered string is palindrome or not.
find palindrome in string by making functions
Write a program which reads a string from an input file such that your program must tell whether that string is palindrome or not.
Write a program to take a number and check if the number is palindrome or not.
check if a number is palindrome
function to check if a number is a palindrome or not
algorithm to check if a number is palindrome or not
check if number is palindrome std
ill in the code to complete the following method for checking whether a string is a palindrome.
program to find a string is palidrome or not
efficient program for checking a string is palindrome or not in cpp
check a string is palindrome or not
Write a function that determines if a text is Palindrome
if a string is palindrome or how many characters does it require to make it a palindrome
a function that determines if a string is a palindrome recursion
how to check if its possible to create palindrome wiht a
check whether a string is palindrome or not c++
Write a program to check the palindrome string.
Write a program to check whether a number is palindrome or not (using while loop).
def check palindrome(input string):
check if string is palindrome
check whether input string is palindrome in masm
accept string from a user and check if a palindrome or not
accept string and check if palindrome
a program reads a string of size less than 5. Find the correct test case for the program for checking whether input string is palindrome or not
how many loops are required to check if string is palindrome or not mcq
. How many loops are required to check if string is palindrome or not
Write a program “palin.asm” that determines if the given input a is a palindrome.
find whether a string is a palindrome or not
write a code to determine if an integer is a palindrome
how to check whether a number is palindrome or not
Write a program to find the given number is palindrome or not.
write a program to check the string is palindrome or not.
write a program to find palindrome of given string
Write a program to check if the given array is palindrome or not ?? #
check if string is palindrome or nor
given string is palindrome number or not
check if number is palindrome
string is palindrome or not
check if a string is palindrome
1. Program to check whether the entered number is palindrome or not.
how many loops are required to check string is palindrome or not
4. Write a program to check a number is Palindrome number or not\
write a function to check if the two numbers are palindromes
how to check a string is palindrome or not
write a function to determine if a string is a palindrome pseudocode
write a function to determine if a string is a palindrome
Write a program that checks if a number is a palindrome and outputs the message "true" or "false"
How many loops are required to check if string is palindrome or not ans in number
How many loops are required to check if string is palindrome or not
How many loops are required to check if string is palindrome or not*=
How many loops are required to check if string is palindrome or not*
WRITE A PROGRAM IN C TO ACCEPT AND CHECK A PALINDROME STRING.
Write a program using function to find out the given string is palindrome or not.
check wheather string is palindrome or not
Write a program to accept a number and display whether the number is palindrome or not.
program to check whether string is palindrome or not
Someone enters a string and check whether is it palindrome or not,which logic is used?
Write a program that takes a number and checks whether it is palindrome or not.
Write code to check a String is palindrome or not?
Write a program to check whether inputted string is palindrome or not.