Computer Science, asked by gamer75joy, 4 months ago

Write a program to print the Palindrome numbers from any 20 input numbers in Java.
Note:- the numbers will be imputed by the user. user need to put 20 number one by one.
ex- number1-2334
number2--555
....etc.

Answers

Answered by mukhesh13
0

Answer:

A musical instrument is a device created or adapted to make musical sounds. In principle, any object that produces sound can be considered a musical ...

Answered by sanjuchaurasiaedu
0

Answer:

public class Palindrome {

public static void main(String[] args) {

int num = 121, reversedInteger = 0, remainder, originalInteger;

originalInteger = num;

// reversed integer is stored in variable

while( num != 0 )

{

remainder = num % 10;

reversedInteger = reversedInteger * 10 + remainder;

num /= 10;

}

// palindrome if orignalInteger and reversedInteger are equal

if (originalInteger == reversedInteger)

System.out.println(originalInteger + " is a palindrome.");

else

System.out.println(originalInteger + " is not a palindrome.");

}

please mark me as brainliest

Similar questions