Computer Science, asked by geetanagar2509, 2 months ago

write a program to input a number and check wether its a palidrome or not. in java

Answers

Answered by abhibagodi2005
0

Answer:

import java.util.scanner;

java.util.scanner;public class Palindrome

java.util.scanner;public class Palindrome {

java.util.scanner;public class Palindrome { public static void main(String[] args)

java.util.scanner;public class Palindrome { public static void main(String[] args) {

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger;

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num;

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num; while( num != 0 )

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num; while( num != 0 ) {

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num; while( num != 0 ) { remainder = num % 10;

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num; while( num != 0 ) { remainder = num % 10; reversedInteger = reversedInteger * 10 + remainder;

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num; while( num != 0 ) { remainder = num % 10; reversedInteger = reversedInteger * 10 + remainder; num /= 10;

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num; while( num != 0 ) { remainder = num % 10; reversedInteger = reversedInteger * 10 + remainder; num /= 10; }

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num; while( num != 0 ) { remainder = num % 10; reversedInteger = reversedInteger * 10 + remainder; num /= 10; } if (originalInteger == reversedInteger)

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num; while( num != 0 ) { remainder = num % 10; reversedInteger = reversedInteger * 10 + remainder; num /= 10; } if (originalInteger == reversedInteger) System.out.println(Integer + " is a palindrome.");

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num; while( num != 0 ) { remainder = num % 10; reversedInteger = reversedInteger * 10 + remainder; num /= 10; } if (originalInteger == reversedInteger) System.out.println(Integer + " is a palindrome."); else

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num; while( num != 0 ) { remainder = num % 10; reversedInteger = reversedInteger * 10 + remainder; num /= 10; } if (originalInteger == reversedInteger) System.out.println(Integer + " is a palindrome."); else System.out.println(Integer + " is not a palindrome.");

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num; while( num != 0 ) { remainder = num % 10; reversedInteger = reversedInteger * 10 + remainder; num /= 10; } if (originalInteger == reversedInteger) System.out.println(Integer + " is a palindrome."); else System.out.println(Integer + " is not a palindrome."); }

java.util.scanner;public class Palindrome { public static void main(String[] args) { int num = 121, reversedInteger = 0, remainder, originalInteger; Integer = num; while( num != 0 ) { remainder = num % 10; reversedInteger = reversedInteger * 10 + remainder; num /= 10; } if (originalInteger == reversedInteger) System.out.println(Integer + " is a palindrome."); else System.out.println(Integer + " is not a palindrome."); }}

Plz mark me has Brainlist

Similar questions