Science, asked by ItzShadowy, 1 month ago

wap in bluej to input upper and lower number in palindrome number in else statement as well as if else.. ​

Answers

Answered by Anonymous
1

Explanation:

How to find if a number is a palindrome in Java

Checking whether a number is palindrome or not is a classical Java homework exercise. When you start learning Java programming most institute which teaches Java programming provides these classical Java programs like How to find Armstrong number in Java or how to find the Fibonacci number in Java using recursion etc. Write a Java program to check if the number is palindrome comes from the same category. For those who are not familiar with palindrome numbers, a palindrome number is a number which is equal to reverse of itself. For example, 121 is a palindrome because the reverse of 121 is 121, while 123 is not a palindrome in Java because the reverse of 123 is 321 and 121!=321. Finding a palindrome number is easy in Java, you just need to develop logic to reverse a number in Java.

Thankfully Java provides a couple of arithmetic operators like remainder(%) operator also known as modules operator, which returns remainder in division operator and division operator(/) which returns quotient. By using remainder and division operator in Java we can create program to check if the number is palindrome or not.

Read more: https://www.java67.com/2012/09/palindrome-java-program-to-check-number.html#ixzz6q0DWO2CQ

Similar questions