What is a palindrome number ? Check here Java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 import java.util.Scanner; public class PalindromeRange{ public static void main (String []args){ Scanner sc = new Scanner(System. in ); int lower = sc. nextInt (); int upper = sc. nextInt (); for ( int i=lower; i<=upper; i++){ if (checkPalindrome(i)) System. out . print (i + " " ); } } public static boolean checkPalindrome ( int n){ int temp = n, rev = 0 ; while (temp!= 0 ){ rev = (rev * 10 ) + (temp % 10 ); temp = temp / 10 ; } if (n==rev) return true ; return false ; } } Python lower = int ( input ( "Enter lower limi...
This blog contains coding/programming and interview questions of MNCs like TCS, Wipro, Infosys, Capgemini, Mindtree, Amazon, Google, Facebook, Flipkart, Cisco, HP, Dell, etc. with placement preparation guides.