import java.util.*;
import java.lang.*;
class TestID
{
public static void main(String[] args)
{
Character c;
String s;
int x,i,sum;
Scanner in = new Scanner(System.in);
System.out.print("Enter ID 12 Digit = ");
String digi = in.nextLine();
System.out.println("");
if(digi.length() != 12) System.out.println("Wrong ID : ID Not Match!!");
else
{
for(i=0, sum=0; i < 12; i++)
{
c = new Character(digi.charAt(i));
s = c.toString();
x = Integer.parseInt(s);
sum += x*(13-i);
};
System.out.println("Last Digi = "+((11-sum%11)%10));
};
System.out.println("");
}
}
import java.lang.*;
class TestID
{
public static void main(String[] args)
{
Character c;
String s;
int x,i,sum;
Scanner in = new Scanner(System.in);
System.out.print("Enter ID 12 Digit = ");
String digi = in.nextLine();
System.out.println("");
if(digi.length() != 12) System.out.println("Wrong ID : ID Not Match!!");
else
{
for(i=0, sum=0; i < 12; i++)
{
c = new Character(digi.charAt(i));
s = c.toString();
x = Integer.parseInt(s);
sum += x*(13-i);
};
System.out.println("Last Digi = "+((11-sum%11)%10));
};
System.out.println("");
}
}