Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package sothuannghich;
- import java.util.Scanner;
- /**
- *
- * @author ASUS
- */
- public class Sothuannghich {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- int n;
- System.out.print("n=");
- n = new Scanner(System.in).nextInt();
- int m;
- m=n;
- int tong;
- tong=0;
- while(n>0){
- tong=(tong*10)+(n%10);
- n/=10;
- }
- if(tong==m){
- System.out.println("YES");
- }
- else System.out.println("NO");
- }
- }
Add Comment
Please, Sign In to add comment