How to check Palindrome Number
Learn:
1. check the given number is Palindrome or not.
2. write different test cases
Code:
package Questions;
public class PalindromeNumber {
//151 454 34543 161 78987
//teet
public static void isPalindromeNumber(int num){
System.out.println(“Given Number is :” + num);
int r=0;
int sum=0;
int t;
t=num;
while(num>0){
r = num%10; //get the remainder
sum = (sum*10)+r;
num=num/10;
}
if(t==sum){
System.out.println(“palindrome number”);
}else{
System.out.println(“not palindrome number”);
}
}
public static void main(String[] args) {
isPalindromeNumber(151);
isPalindromeNumber(152);
isPalindromeNumber(78987);
isPalindromeNumber(1110);
isPalindromeNumber(0);
}
}
Innovative thinking of you in this blog makes me very useful to learn.
i need more info to learn so kindly update it.
Selenium Training in Chennai
selenium training in tambaram
JAVA Training in Chennai
Python Training in Chennai
Hadoop Training in Chennai
IOS Training in Chennai
Selenium Training in Chennai
Selenium Training in OMR
I like this post and regularly I am reading your blog, so please updates more unique posts. Continue your great work.
Corporate Training in Chennai
Corporate Training institute in Chennai
Social Media Marketing Courses in Chennai
Advanced Excel Training in Chennai
Tableau Training in Chennai
Pega Training in Chennai
Oracle DBA Training in Chennai
Corporate Training in Chennai
Corporate Training institute in Chennai
Nice Blog….. Keep Update…….
Custom application development in chennai
UI path development in chennai
rpa development in chennai
Robotic Process Automation in chennai
erp in chennai
thanks for sharing this information
data science classroom training in bangalore
best training institute for data science in bangalore
data science with python training in bangalore
best data science training in bangalore
UiPath Training in Bangalore
tableau training in bangalore
tableau training in bangalore marathahalli
tableau classroom training in bangalore
best tableau training institutes in bangalore
Great post!! This can be one particular of the most useful blogs. Basically Wonderful. I can understand your hard work.
tasty catering services in chennai
best caterers in chennai
catering services in chennai
tasty catering services in chennai
party catering services in chennai