Computer Science, asked by sagarikagubbala38, 9 months ago

Write a java program to accept 10 numbers and find the palindrome numbers and display them without using reverse statement​

Answers

Answered by Mansipatel07
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 krs1000024519
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