Palindrome program in C | Check if number or string is Palindrome | #9 Coding Bytes

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 59

  • @alekyareddy4086
    @alekyareddy4086 2 роки тому +7

    Can we use string reverse function to check whether it is palindrome or not

    • @bhuvan6926
      @bhuvan6926 2 роки тому +3

      Can you please write that code ..what you have assumed??....

  • @vishnumaragani
    @vishnumaragani 2 роки тому +3

    Short and sweet logic explanation

  • @bhuvan6926
    @bhuvan6926 2 роки тому +2

    Thank you FACE PREP♥️♥️

  • @Sj_Voice_Tamil
    @Sj_Voice_Tamil 5 років тому +5

    Your classes are very useful... 😇

  • @bedantasahoo1702
    @bedantasahoo1702 2 роки тому +3

    Thanks for the explanation ☺️it's very useful

  • @am_ayaan_5379
    @am_ayaan_5379 2 роки тому +1

    Logic is very good thanks

  • @farhanaahmmed4832
    @farhanaahmmed4832 4 роки тому

    Your Explanation is really awesome...

  • @ritiks.hujwant3816
    @ritiks.hujwant3816 3 роки тому +2

    Thank you for such a great explanation 💫🤩🥰

  • @mdfaizanalam_
    @mdfaizanalam_ 3 роки тому +1

    Thanks for explaining the logic

  • @DANGER_GAMING_FF70
    @DANGER_GAMING_FF70 2 роки тому +1

    Thanks for the great explanation

  • @adityakocharla
    @adityakocharla 4 роки тому

    Tq so much this video 📷📷📷 helped me a lot to understand the concept

  • @isikamaiti9116
    @isikamaiti9116 2 роки тому +2

    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.

  • @Jamshad.ali.j
    @Jamshad.ali.j 2 роки тому

    what is the for loop for given number is palidrome or not

  • @pragyasharmar2104
    @pragyasharmar2104 4 роки тому +2

    Had a great session

  • @chikkamsrinivas6118
    @chikkamsrinivas6118 3 роки тому +1

    Thank u so much madam

  • @ajajhusainofficial
    @ajajhusainofficial Рік тому

    your logic is very simple .
    Thank you mam

  • @gowthamb12a68
    @gowthamb12a68 2 роки тому

    Mam how to use pointers in palindrome

  • @a12-j4c5v
    @a12-j4c5v 3 роки тому

    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.

  • @krishnachhabra77
    @krishnachhabra77 5 років тому +2

    Explaning skill 👌

  • @purveshpangudwale5083
    @purveshpangudwale5083 4 роки тому +1

    What happen if the character is palindrome then also it will break out from for loop in 1st iteration only

    • @1prdas1
      @1prdas1 3 роки тому +1

      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.

  • @RisingIndiabyRSK
    @RisingIndiabyRSK 5 років тому

    Awesome video

  • @Sagarmore17
    @Sagarmore17 4 роки тому

    Good work mam

  • @md.parvej9493
    @md.parvej9493 4 роки тому

    Awesome class.

  • @ajithakhil7079
    @ajithakhil7079 2 роки тому +2

    your string palindrome logic is not complete.
    for(i=0;i

    • @mhdsadiqp4756
      @mhdsadiqp4756 Рік тому

      Please provide full of the program 🙏

    • @wladekarek
      @wladekarek Рік тому

      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;
      }

  • @Manu_V_M
    @Manu_V_M 4 роки тому

    Thank you so much❤️👍

  • @solowalker2548
    @solowalker2548 Рік тому

    After breaking the while loop ,The value of n would be zero

  • @flyingbomber
    @flyingbomber 4 роки тому +1

    Thanks mam

  • @nsunandha3031
    @nsunandha3031 Рік тому

    In this program what is the use of flag madem why you write flag Flag means madem explain mam

  • @ramakrishnanv3793
    @ramakrishnanv3793 4 роки тому

    THANK YOU SO MUCH, MAM... I HAVE A DOUBT IN THAT CONCEPT AND NOW YOU CLEARED THAT MAM

  • @balarajumbbalarajumb8910
    @balarajumbbalarajumb8910 3 роки тому

    ALP to Check string is palindrome or not in ARM 7 Program one program send madi

  • @shubham-sale
    @shubham-sale 5 років тому

    Nice explanation

  • @saibashanoorbasha2962
    @saibashanoorbasha2962 3 роки тому +1

    But I want in python not in C😢😢. Anyway you r looking gorgeous😍😍

    • @suriyaprakash5172
      @suriyaprakash5172 3 роки тому

      If u know Concept, write any programming language it's simple.

    • @saibashanoorbasha2962
      @saibashanoorbasha2962 3 роки тому +1

      @@suriyaprakash5172 If I know Why would I prefer to your videos bro

  • @rajilakshmi9081
    @rajilakshmi9081 4 роки тому

    Awesome ya!!!

  • @thulisisizwemagagula
    @thulisisizwemagagula 4 роки тому

    Thank you So much

  • @ExploreWithSudarshan
    @ExploreWithSudarshan 2 роки тому

    mam so cute ❤

  • @pranavjoshi9234
    @pranavjoshi9234 4 роки тому

    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;
    }

  • @lalayadav-n3e
    @lalayadav-n3e 3 роки тому

    why we use flag can anyone explain

  • @ss.b.s3170
    @ss.b.s3170 3 роки тому

    U had not initialize the rem in program

    • @FACEPrep
      @FACEPrep  3 роки тому +2

      It's just a pseudo code buddy. But yeah you are right it has to be initialized.

  • @jeevansmith
    @jeevansmith 4 роки тому

    🔥🔥

  • @suchanaghosh7943
    @suchanaghosh7943 2 роки тому

    input:noon5
    output:noon is palindrome. pls slove this.

  • @geniusboys8204
    @geniusboys8204 4 роки тому +3

    I think you are wrong, break should be inside if loop

  • @balarajumbbalarajumb8910
    @balarajumbbalarajumb8910 3 роки тому +1

    Plz send me mam

  • @mr__rishi.1157
    @mr__rishi.1157 4 роки тому

    ❤❤❤

  • @pranavsharma4714
    @pranavsharma4714 4 роки тому +2

    You need to practice a lot how to explain things

    • @thasthakir3125
      @thasthakir3125 4 роки тому +6

      You need to Practice a lot how to understand things.

  • @thamburemash8030
    @thamburemash8030 4 роки тому

    are you single...?

  • @VaishnaviSingh-b8v
    @VaishnaviSingh-b8v 3 місяці тому

    You taught the logic it really great 😢 code tho sab bate h but logic koi nhi deta thanks 🫶🏻