Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class PalindromeNumber_03_12 {
  4. public static void main(String[] args) {
  5. Scanner input = new Scanner(System.in);
  6.  
  7. System.out.print("Enter a three-digit integer: ");
  8. _____________________________________________
  9.  
  10. if (______________ / _____________ == number % 10)
  11. System.out.println(____________ + " is a palindrome");
  12. else
  13. System.out.println(_________ + " is not a palindrome");
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement