Computer Science, asked by lalithasriya69861, 3 months ago

Write a Program to print all 3 digit palindrome no

Answers

Answered by sjk17312
5

✍️ANSWER✍️

return number = = number[::-1] for i in range(100, 1000):

if (i % 100 = = 0): print( ) In Java:

public class Palindrome { static boolean isPalindrome(int number) {

return (number + "").equals(new StringBuffer(number + "").reverse( ).toString( )); } ...

if (isPalindrome(i)) System.out.print(i + " ");

hope it's help uh

Answered by CopyThat
5

Answer:

JAVA:-

Explanation:

class Brainly

static void main()

{

int i,j,r,d;

for(i=100;i<=999;i++)

{

r=0;

for(j=i;j>0;j=j/10)

{

d=j%10;

r=r*10+d;

}

if(r==i)

System.out.println(i);

}

}

}

Similar questions