Ma'am ,if we consider a string like "moram". So then,we should not give break in this position.Because if(m!=m), condition false ,and then break statement help to terminate the loop ,and print both are same string.
Could u please give me the program to check wether the words in a given sentence are palindrome.if not reverse the word.print the new sentence right now ples? Fast.
If the first condition is true than it will loop through all until condition is false. But if the first or any next iteration is false it will break from loop before completion and give output as non palindrome.
actually there is no point in checking entire length of the string, half of it will do, it is c# but you all will get it :) static bool IsPalindrome(string text){ int len = text.Length; int halfLen = len /2; len -= 1;
for(int i = 0; i < halfLen; i++){ if(text[i] != text[len - i]) return false; }
Easiest way to understand palindrome program int main(void) { int a,b,c,d,e,f; printf("Please Enter a 5 digit number: "); scanf("%d",&a); b=a/10000; c=a/1000; d=c%10; e=a%10; f=a%100/10; if(b==e && d==f) { printf("Your number is \"palindrome\" = %d ",a); } else { printf("Your number is \"NOT\" palindrome-%d ",a); } printf("Thank you!"); return 0; }
Can we use string reverse function to check whether it is palindrome or not
Can you please write that code ..what you have assumed??....
Short and sweet logic explanation
Thank you FACE PREP♥️♥️
Your classes are very useful... 😇
Thanks for the explanation ☺️it's very useful
Logic is very good thanks
Your Explanation is really awesome...
Thank you for such a great explanation 💫🤩🥰
Thanks for explaining the logic
Thanks for the great explanation
Tq so much this video 📷📷📷 helped me a lot to understand the concept
Ma'am ,if we consider a string like "moram". So then,we should not give break in this position.Because if(m!=m), condition false ,and then break statement help to terminate the loop ,and print both are same string.
what is the for loop for given number is palidrome or not
Had a great session
Thank u so much madam
your logic is very simple .
Thank you mam
Mam how to use pointers in palindrome
Could u please give me the program to check wether the words in a given sentence are palindrome.if not reverse the word.print the new sentence right now ples? Fast.
Explaning skill 👌
What happen if the character is palindrome then also it will break out from for loop in 1st iteration only
If the first condition is true than it will loop through all until condition is false. But if the first or any next iteration is false it will break from loop before completion and give output as non palindrome.
Awesome video
Good work mam
Awesome class.
your string palindrome logic is not complete.
for(i=0;i
Please provide full of the program 🙏
actually there is no point in checking entire length of the string, half of it will do, it is c# but you all will get it :)
static bool IsPalindrome(string text){
int len = text.Length;
int halfLen = len /2;
len -= 1;
for(int i = 0; i < halfLen; i++){
if(text[i] != text[len - i]) return false;
}
return true;
}
Thank you so much❤️👍
After breaking the while loop ,The value of n would be zero
Thanks mam
In this program what is the use of flag madem why you write flag Flag means madem explain mam
THANK YOU SO MUCH, MAM... I HAVE A DOUBT IN THAT CONCEPT AND NOW YOU CLEARED THAT MAM
ALP to Check string is palindrome or not in ARM 7 Program one program send madi
Nice explanation
Want to see more
But I want in python not in C😢😢. Anyway you r looking gorgeous😍😍
If u know Concept, write any programming language it's simple.
@@suriyaprakash5172 If I know Why would I prefer to your videos bro
Awesome ya!!!
Thank you So much
mam so cute ❤
Easiest way to understand palindrome program
int main(void)
{
int a,b,c,d,e,f;
printf("Please Enter a 5 digit number: ");
scanf("%d",&a);
b=a/10000;
c=a/1000;
d=c%10;
e=a%10;
f=a%100/10;
if(b==e && d==f)
{
printf("Your number is \"palindrome\" = %d
",a);
}
else
{
printf("Your number is \"NOT\" palindrome-%d
",a);
}
printf("Thank you!");
return 0;
}
why we use flag can anyone explain
U had not initialize the rem in program
It's just a pseudo code buddy. But yeah you are right it has to be initialized.
🔥🔥
input:noon5
output:noon is palindrome. pls slove this.
I think you are wrong, break should be inside if loop
Ya I also think so
You are right!
Plz send me mam
❤❤❤
We love you too.
You need to practice a lot how to explain things
You need to Practice a lot how to understand things.
are you single...?
You taught the logic it really great 😢 code tho sab bate h but logic koi nhi deta thanks 🫶🏻