Тёмный

C++ program to Check for Palindrome Numbers | C++ programming tutorials for beginners 

Simple Snippets
Подписаться 249 тыс.
Просмотров 153 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 86   
@SimpleSnippets
@SimpleSnippets 5 лет назад
Hey Guys, if you want many more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends ✌
@prasannakoirala8605
@prasannakoirala8605 4 года назад
,
@sahithgondi1860
@sahithgondi1860 3 года назад
Very good tutorial.This makes it very easy to understand how everything works.
@محسنلاشاري-ه4ض
@محسنلاشاري-ه4ض 11 месяцев назад
Well efforts sir, I tried every video on youtube but I got this
@abdulmasood1693
@abdulmasood1693 2 года назад
why is "num" stored to another variable "n". Why cant we just use "if(num==rev)"???
@20_SinManya
@20_SinManya 5 лет назад
I have one doubt: Is '1001' is a palindrome (Note the single quotes before answering)?It would be very nice if you can show the program using strings.
@rukaiyshaikh3366
@rukaiyshaikh3366 Год назад
Put it in the program 🤦
@kanaksharma5979
@kanaksharma5979 4 года назад
Thanku I really understanded this concept thanks for this video 👍👍😊😊🤗
@SimpleSnippets
@SimpleSnippets 4 года назад
Glad to hear that Kanak. Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@saniyamansuri9607
@saniyamansuri9607 3 года назад
Enjoying coding all because of your channel 😀
@ankitabanarase2631
@ankitabanarase2631 5 лет назад
Nice video ...concept was clear
@SimpleSnippets
@SimpleSnippets 5 лет назад
Thank you so much buddy 😋😇 Happy to hear this from you. Please do share the video with your friends too ✌️
@antounshahin497
@antounshahin497 4 года назад
hey after we are done from the while loop and we start checking if the reverse is equal to our main number, why we didn't compare the num directly with the rev? why you assigned n to num the compare n to rev? I tried it and it gave me a wrong answer
@SimpleSnippets
@SimpleSnippets 4 года назад
Try to dry run the code step by step. take a pen and paper & note down all the variable values at each iteration to understand the full working. ✌
@GaneshKumar-mo3ei
@GaneshKumar-mo3ei 5 лет назад
Plz upload videos for gross salary, percentage and number conversion (i e., 11th practical programs)🙇😋
@nitya_sathish
@nitya_sathish 4 года назад
Hey, this tutorial is very helpful. But, how would we change the code if we want to use a negative number? Ex: if num = -121, then rev should equal 121-, and should output not palindrome.
@measumabbasdayal7867
@measumabbasdayal7867 2 года назад
negative numbers are not palindrome
@pranav288
@pranav288 2 года назад
wtf is 121-
@snehabankapur4635
@snehabankapur4635 4 года назад
HOW DO U INCREMENT REV BY ONE??
@ronakbothra6371
@ronakbothra6371 4 года назад
Really helpful, also a black background would have been better
@SimpleSnippets
@SimpleSnippets 4 года назад
Thanks Ronak. There's a scientific reason to not go with dark theme with doing video recording. That's because the text on dark theme is not as clear as text on white theme especially at lower resolutions. You can try to verify this. Personally I love dark theme myself. It's just not optimum for video recordings 😊
@lordrageop7
@lordrageop7 3 года назад
Write a menu based C++ program to do the following operations using dedicated user defined function for each operation. a) square of a number b) factorial of a number c) whether prime or not d) whether even or not e) whether palindrome or not Plz solve this 🙏🙏
@mahadihasan7300
@mahadihasan7300 2 года назад
Many Many Thanks 😍😍😍
@SimpleSnippets
@SimpleSnippets 2 года назад
Most welcome 😊✌️
@Uzair.ur7
@Uzair.ur7 8 месяцев назад
Also a do a program of array elements check palandrom or not
@iashutoshsahni
@iashutoshsahni 4 года назад
Well explained bro...
@SimpleSnippets
@SimpleSnippets 4 года назад
Glad you liked it. Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@fade3302
@fade3302 6 лет назад
You're a hero bro😊
@SimpleSnippets
@SimpleSnippets 6 лет назад
Wow buddy, that you so much for such a wonderful response. I'm so happy to hear your positive feedback and to know that this video was informational for you. Do share the videos with your friends and contacts and keep sharing the knowledge buddy 😇
@sharifullahdanish4480
@sharifullahdanish4480 3 года назад
Sir, you could please make a video regarding palindorm in C++ using stack... and one issue with this code is that for the first time the result is correct but when I used do while loop for asking the user whether they want to repeat this process or not, for the second time the result is incorrect for the same palindrom number.
@ssseoks
@ssseoks 4 года назад
Your are genius
@SimpleSnippets
@SimpleSnippets 4 года назад
Heheh not really but thanks I am flattered 😅😅 Please do share the videos with your friends too ✌
@shreeshupadhyay8845
@shreeshupadhyay8845 5 лет назад
great work man
@SimpleSnippets
@SimpleSnippets 5 лет назад
Thank you bro 😊. Please do share the videos with your friends too ✌️
@aryanmadhavverma
@aryanmadhavverma 7 лет назад
You're going to make me top my cs exam 😂
@SimpleSnippets
@SimpleSnippets 7 лет назад
+Aryan Madhav Verma thank you so much buddy for such a positive feedback buddy. I'm sure you'll do great in your exam 😎✌😇 all the best and do share the videos with your friends so that it'll help them as well 😎
@faiyazmahmud5580
@faiyazmahmud5580 3 года назад
THANKS A LOT
@SimpleSnippets
@SimpleSnippets 3 года назад
You're welcome! Please do share the videos and channel with your friends too. Thats the biggest help and support you can give back to our channel!
@newsamplifier
@newsamplifier Год назад
Thanks Man.
@sidharthharidas8336
@sidharthharidas8336 7 лет назад
This is a great video.....but when I tried it myself (C++ 4.5) I couldn't get desirable results. It says its not a palindrome. please help!
@SimpleSnippets
@SimpleSnippets 7 лет назад
It should workout fine buddy. There's no alternative that I have tried but you can google palindrome program for C++ and you will get it. Also try downloading this Dev C++ IDE and try it there. I should work. Lastly you basically know the logic and algorithm of how it works right. So maybe you can try out some other possible combinations to see if it works. ✌
@sidharthharidas8336
@sidharthharidas8336 7 лет назад
I downloaded dev c++ and it worked perfectly....thank u so much......
@mahektiwari3842
@mahektiwari3842 4 года назад
Thanks
@SimpleSnippets
@SimpleSnippets 4 года назад
Welcome
@frodobaggins4159
@frodobaggins4159 7 лет назад
Y you skipped last step 1%10 and directly told we will get some value and wrote reverse directly?
@SimpleSnippets
@SimpleSnippets 7 лет назад
Hello, in the last iteration num=1 correct. so lets try and dryrun the part inside the loop. in the first line we have : digit = num%10. % sign is mod sign which will give us the remainder and not the quotient. so 1mod10 = 1 so digit = 1 now on the next like we have rev = (rev*10)+digit. rev was already 12 so multiplying it by 10 we get 120 and adding the digit variable which is 1 we will get rev=121 last statement is num = num/10 now / is for division so we get the quotient. num is 1. so 1/10 = 0. so the new num =0 so when the loop again tries to execute we have num=0 hence the loop execution stops as the while loop executes only till the num is not equal to 0. which means the moment num=0 the loop will stop iterating. thats why I didnt emphasize much on the last step
@kavirajsk6159
@kavirajsk6159 5 лет назад
Dude instead of using while loop you can use stringrev
@SimpleSnippets
@SimpleSnippets 5 лет назад
True that. Was trying to not use any inbuilt functions to explain actually how it works✌️😊
@avaneesha9571
@avaneesha9571 3 года назад
Thank you
@mariav1234
@mariav1234 5 лет назад
Nice! Thanks.
@SimpleSnippets
@SimpleSnippets 5 лет назад
Most welcome buddy. Please do share the video with your friends 😇
@roshanbohara8834
@roshanbohara8834 2 месяца назад
While solving for 202 in second iteration I got 10 and at the 3rd iteration I got 20, by 1 and 3 iteration by adding it will be 202 I guess but what about that 10?? at the second iteration
@nidhisahu9500
@nidhisahu9500 6 лет назад
Why we consider the 10 number
@SimpleSnippets
@SimpleSnippets 6 лет назад
Where exactly? We're dealing with the decimal number system that's why I guess.
@abirsonet925
@abirsonet925 Год назад
thnk you
@antonkarasev4173
@antonkarasev4173 Год назад
This prog doesn't work with 0 > numbers and numbers > =10**9, so i don't find it useful
@masoomajameel1557
@masoomajameel1557 Год назад
u r great
@mo24338
@mo24338 2 года назад
You are awesome
@sallamrady8615
@sallamrady8615 5 лет назад
very good
@SimpleSnippets
@SimpleSnippets 5 лет назад
Thank you so much 😊✌️ Please do share the videos with your friends too 😊
@ushajose2377
@ushajose2377 4 года назад
Thank youu🙏🙏
@SimpleSnippets
@SimpleSnippets 4 года назад
Most welcome Usha, please do share the videos with your friends too 😇
@Ayush-qv5xs
@Ayush-qv5xs 7 лет назад
Awesome!
@SimpleSnippets
@SimpleSnippets 7 лет назад
+ayush sharma thank you so much for your positive response buddy ✌😇
@rdxdevil5083
@rdxdevil5083 Год назад
Computer doesn't understand like human because as we know that the reverse number of 121 will be 121 But computer' result wil outcome By some mathmatics calculations....
@rachitsharma804
@rachitsharma804 6 лет назад
thx bhai jaan bachali
@SimpleSnippets
@SimpleSnippets 6 лет назад
You're welcome buddy, happy to hear that this video helped you. Do share it with your friends and contacts so that even they get help from this video. ✌
@051sudharsan8
@051sudharsan8 5 лет назад
Nice
@SimpleSnippets
@SimpleSnippets 5 лет назад
Thank you so much ✌️
@rahulgandla1701
@rahulgandla1701 4 года назад
It doesn't work for bigger numbers like 123456787654321
@beemolpuri6103
@beemolpuri6103 6 лет назад
I need more help
@SimpleSnippets
@SimpleSnippets 6 лет назад
What do you need?
@ridaeman68
@ridaeman68 2 года назад
Why here we take value of 10
@allrounder2367
@allrounder2367 2 года назад
Didn't got it
@KTKOUSHIKBEC
@KTKOUSHIKBEC 4 года назад
👍👍
@sivakumarm8900
@sivakumarm8900 6 лет назад
#eat #sleep n #code
@SimpleSnippets
@SimpleSnippets 6 лет назад
Yes 😇
@josephkabeloqhobosheane3212
@josephkabeloqhobosheane3212 6 лет назад
absolutely...
@multipletalent278
@multipletalent278 5 лет назад
Hey I prepared a this program by using printf but every number it give not palindrome LOL ,🙄🙄
@rfjsr3417
@rfjsr3417 3 года назад
Aisa Program type krne k kya faida jo read hi nai kiya ja sake. Bhai sahab apne jo program type kiya hai logon ko usko read krne me Microscope ka use krana prega.
@mangeshtrimbake3170
@mangeshtrimbake3170 3 года назад
check it for value 1234567899 ie 10^10
@cuteminired6550
@cuteminired6550 Год назад
thanks
@vibhootinageshwar6110
@vibhootinageshwar6110 5 лет назад
Thanks
@SimpleSnippets
@SimpleSnippets 5 лет назад
Most welcome buddy :-) I would request you to please share the video with your friends and contacts. That will be the best help :-)
@rohan397
@rohan397 6 лет назад
Thanks
@SimpleSnippets
@SimpleSnippets 6 лет назад
You're always welcome buddy ✌ Do share the video with your friends and contacts 😇
Далее
Check If A String Is A Palindrome | C++ Example
11:18
Думайте сами блин
18:15
Просмотров 257 тыс.
Check If A Number Is Prime | C++ Example
8:29
Просмотров 22 тыс.
Go Has Exceptions??
16:58
Просмотров 67 тыс.