import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");
        Scanner sc=new Scanner(System.in);
        int n=10;
        int a=n;
        int sum=0;
        while(a!=0){
            int digit=a%10;
            sum=digit+sum*10;
            a=a/10;
        }
        if(n==sum){
            System.out.println("palindome");
        }
        else{
            System.out.println("Not palindome");
        }
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: