(String[] args)
| 9 | public class Palindrome { |
| 10 | |
| 11 | public static void main(String[] args) |
| 12 | { |
| 13 | Scanner sc=new Scanner(System.in); |
| 14 | int n=sc.nextInt(); |
| 15 | int copy=n; |
| 16 | int r=0,d=0; |
| 17 | while(n>0) |
| 18 | { |
| 19 | d=n%10; |
| 20 | r=10*r+d; |
| 21 | n=n/10; |
| 22 | } |
| 23 | if(r==copy) |
| 24 | { |
| 25 | System.out.println(copy+" is a palindrome number"); |
| 26 | } |
| 27 | else{ |
| 28 | System.out.println(copy+" is not a palindrome number"); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | } |
nothing calls this directly
no outgoing calls
no test coverage detected