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

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • In today's video, we will discuss how to check if a given number or a string is a palindrome or not. If you want to know the detailed solution of the discussed programs in C, C++, Java or Python, then refer the below links.
    Program to check if a given number is a palindrome - bit.ly/2NCBHZ0
    Program to check if a given string is a palindrome - bit.ly/2p8LjkX
    For aptitude and programming preparation resources, recruitment drive updates, interview tips & tricks, come join the largest learners' community on Telegram and WhatsApp and take your placement preparation to the next level.
    Join here:
    Telegram: t.me/faceprepo...
    WhatsApp: bit.ly/2MgoYMR

Комментарии • 60

  • @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

  • @Sj_54321
    @Sj_54321 4 года назад +5

    Your classes are very useful... 😇

  • @isikamaiti9116
    @isikamaiti9116 2 года назад +1

    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.

  • @bhuvan6926
    @bhuvan6926 2 года назад +2

    Thank you FACE PREP♥️♥️

  • @bedantasahoo1702
    @bedantasahoo1702 2 года назад +3

    Thanks for the explanation ☺️it's very useful

  • @Jahirulislam22dob
    @Jahirulislam22dob 3 года назад

    Your teaching technique is very good and voice as well

  • @am_ayaan_5379
    @am_ayaan_5379 2 года назад +1

    Logic is very good thanks

  • @ritiks.hujwant3816
    @ritiks.hujwant3816 3 года назад +2

    Thank you for such a great explanation 💫🤩🥰

  • @mdfaizanalam_
    @mdfaizanalam_ 3 года назад +1

    Thanks for explaining the logic

  • @EAKRAJ1234
    @EAKRAJ1234 2 года назад +1

    Thanks for the great explanation

  • @farhanaahmmed4832
    @farhanaahmmed4832 3 года назад

    Your Explanation is really awesome...

  • @Jahirulislam22dob
    @Jahirulislam22dob 3 года назад

    I think this video will help at least little bit to those who will watch

  • @chikkamsrinivas6118
    @chikkamsrinivas6118 2 года назад +1

    Thank u so much madam

  • @pragyasharmar2104
    @pragyasharmar2104 4 года назад +2

    Had a great session

  • @adityakocharla
    @adityakocharla 3 года назад

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

  • @erenoriginal
    @erenoriginal Год назад

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

  • @RisingIndiabyRSK
    @RisingIndiabyRSK 4 года назад

    Awesome video

  • @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.

  • @md.parvej9493
    @md.parvej9493 4 года назад

    Awesome class.

  • @flyingbomber
    @flyingbomber 4 года назад +1

    Thanks mam

  • @user-ol8xl2ss4w
    @user-ol8xl2ss4w 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.

  • @gowthamb12a68
    @gowthamb12a68 Год назад

    Mam how to use pointers in palindrome

  • @Sagarmore17
    @Sagarmore17 4 года назад

    Good work mam

  • @krishnachhabra77
    @krishnachhabra77 4 года назад +2

    Explaning skill 👌

  • @rajilakshmi9081
    @rajilakshmi9081 4 года назад

    Awesome ya!!!

  • @thulisisizwemagagula
    @thulisisizwemagagula 4 года назад

    Thank you So much

  • @Manu_V_M
    @Manu_V_M 4 года назад

    Thank you so much❤️👍

  • @nsunandha3031
    @nsunandha3031 Год назад

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

  • @ajajhusainofficial
    @ajajhusainofficial Год назад

    your logic is very simple .
    Thank you mam

  • @ramakrishnanv3793
    @ramakrishnanv3793 3 года назад

    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

  • @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 9 месяцев назад

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

  • @solowalker2548
    @solowalker2548 11 месяцев назад

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

  • @shubham-sale
    @shubham-sale 4 года назад

    Nice explanation

  • @jeevansmith
    @jeevansmith 3 года назад

    🔥🔥

  • @lalayadav-n3e
    @lalayadav-n3e 2 года назад

    why we use flag can anyone explain

  • @SudyaCreator
    @SudyaCreator 2 года назад

    mam so cute ❤

  • @suchanaghosh7943
    @suchanaghosh7943 Год назад

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

  • @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

  • @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.

  • @geniusboys8204
    @geniusboys8204 4 года назад +3

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

  • @balarajumbbalarajumb8910
    @balarajumbbalarajumb8910 3 года назад +1

    Plz send me mam

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

  • @mr__rishi.1157
    @mr__rishi.1157 3 года назад

    ❤❤❤

    • @FACEPrep
      @FACEPrep  3 года назад

      We love you too.

  • @pranavsharma4714
    @pranavsharma4714 4 года назад +2

    You need to practice a lot how to explain things

    • @thasthakir3125
      @thasthakir3125 3 года назад +5

      You need to Practice a lot how to understand things.

  • @thamburemash8030
    @thamburemash8030 3 года назад

    are you single...?