Java program to check Number is Palindrome or Not | Learn Coding
ฝัง
- เผยแพร่เมื่อ 6 ธ.ค. 2020
- Java Full Course for Beginners...!👇👇
• Java Programming
Please Like | Share | SUBSCRIBE our Channel..!
Learn Coding
🙏🙏🙏
Like our Facebook Page...!
Learn Coding
Don't forget to tag our Channel...!
#PalindromeNumber
#LearnCoding
#palindromeprogram
#JavaPalindromeProgram
#JavaBasicPrograms
#ask4help
#javapalindrome
#Palindrome
#palindromeornot
#palindrome
#JavaPalindromeNumber
dry run is mind blowing , it helps me a lot , thanku sir
Yee Channel Mujhe Java developer bana ke he manega
Hats off 🙏
Thankyou so much for explaining it in both ways.👍
You are just great at explaining
thankyou so much for giving clear concept
Amazing teaching...nice one 👍👍
Thank you sir ❤ your videos helped me a lot 😊❤❤
finally understand the logic of palindrom number🙂 Thank u so much👍
Wonderful dry run Sir.. really right now zero to hero student got it
Very nice teaching
Super ,I am definitely understand sir....thank you😊
best teacher for coding
You are great Sir🙏💓
excellent explanation bro,i understand very clearly ,thanks bro.
Thank you so much for your good explanation ❤️❤️🥺🥺
excellent explaination. thanks for dry run.
Thanks sir
I watch your videos i easy to understand
Thanku sir bahot aache se explain kiya sir😊
Thanku sir finally i know how to make this program
Good job
Thanks for your help 😀😀🙏
Nice
Teaching I like 😊 it
Thank you sir ....aa gya smjh
Amazing,🤘
Excellent
Sir this video is help us tooo much thanks sir
Aap kaafi accha padhate ho sir
sir aap ki khass baat yahi hai ke aap dry run bahout hi achche se karwate ho
Make more program on java including dsa
Thank you sir you are my saviour
Thank you sir
Nice explanation sir
I have a doubt🤔
Hm to s=0 Initialize kiye h na to jb hm line 16 pe
s= (s×10) +r; kr rhe h to s=1 hona chahiye na kyu ki
0× 10+1=1 hota h
Edit -: please reply me sir
Thank u sir
Nice Explaination bro
Thank you so much
best channel
dry run both acha bhai
Thanks Ankush sir
Next program Fibonacci series please sir 🙏🙏
After 2-3 days 🙏🙏🙏
Sir please upload program of GCD of two numbers and LCM of two numbers in Java
Thank you so much, Sir. Very nice Explanation. But, sir can you please explain? from where did this logic come for palindrome. And what is "s" in the program?
s is sum
S is just a variable, where u can store value..
thanks a lot
Good
best
Hello sir! I have a question to you! Do u provide online class ? I am interested to join your class and hope to get your contact details!
Sir agar hum isse constructer vale me Boolean check me bhi same logic lageyga kya
Thank you for dry run
,👌
Please make video for logest palindrome substring
❤❤😱😱😱😱❤❤
😊😊😊👍🏻👍🏻👍🏻👍🏻👍👍👍
3:24 (note to myself becuz i know until here and I'm gonna watch this video soomany times i keep forgetting this logic)
It is very hactic task need to learn but while solving through reverse loop it gives wrong output why
nice explanation...keep going....do much better
Very nice programming sir
Ultimately superb
Op bhai
Sir aap kaunse company mai job karte ho...
Why multiply s*10
Add nahi kar sakte kya
Sir
C=N ; ke jagah pe this keyword use krke (this.n=n) program run kr skte hai kya..
Nhi kr skte kyonki last me hm compare kaise krenge original number se.
how to find bouncy number ?
Sir I am not able to understand the logic part of reverse and n = n % 10 can you please explain me
😂😂
So if u do n%10 then u get the last digit coz modulus gives u the reminder itz like divides and gives u the reminder (the modulus or % )❤
import java.util.Scanner;
class Palindrom
{
public static void main(String[] args)
{
int num,rem,num2=0;
System.out.print("please enter a number");
Scanner r=new Scanner(System.in);
num=r.nextInt();
int tn=num;
while(num>0)
{
rem=num%10;
num2=(num2*10)+rem;
num=num/10;
}
if (tn==num2)
{
System.out.print("this is palindrom");
}
else
{
System.out.print("this is not palindrom");
}
}
}
Sir infinite digits ke liye kese kare?
Bhai tune to confusion ko x2 kr diya🙂
it is showing error while writing else
3:12 logic start
Why do you write n=n/10
lekin bro 100 ka palimdrom 1 aaraha hai ham aisa kya kare ki 001 aaye ok please tell me bata na bhai
..r=1 kese hua...
in this program he gave variable 'n' value of 121 and he wrote "r=n%10" so it will be "r=121%10" the "%(mod)" operator helps in finding the remainder of a division, when 121 is divided by 10 the remainder will be 1 so "r=1"
int n to thik hai but uske aage jo likha hai aap r,c,s=0; itna short me dikhane l
ki kya jarurat hai brginer personto samjh nahi payega na
samajh ni aa raha sir
Sum =0 nhi liya to kya hoga
Then error dikhayega... Kyuki aapne variable" sum "ko initialize nhi kiya hai...
Kashmir hamara hai
Icse students attendence here
fresher interview mein pooche jaate hain aise questions??
Python se khelte
Thank u sir
Thank you sir
Thankyou sir