SHARE
TWEET

Untitled

a guest Oct 17th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top