Write a java program to accept 10 numbers and find the palindrome numbers and display them without using reverse statement
Answers
Answered by
0
Explanation:
In this java program, we will get a number variable and check whether number is palindrome or not.
class PalindromeExample{
public static void main(String args[]){
int r,sum=0,temp;
int n=454;//It is the number variable to be checked for palindrome.
temp=n;
while(n>0){
r=n%10; //getting remainder.
sum=(sum*10)+r;
Answered by
0
Answer:
In this java program, we will get a number variable and check whether number is palindrome or not.
1.class PalindromeExample{
2.public static void main(String args[]){
3.int r,sum=0,temp;
4.int n=454;//It is the number variable to be checked for palindrome.
5.temp=n;
6.while(n>0){
7.r=n%10; //getting remainder.
8.sum=(sum*10)+r;
Similar questions
English,
4 months ago
Math,
4 months ago
CBSE BOARD X,
4 months ago
Chemistry,
9 months ago
English,
1 year ago