Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java resto

char calculaLetra(int dni) 
{ 
    String juegoCaracteres="TRWAGMYFPDXBNJZSQVHLCKE"; 
    int modulo= dni % 23; 
    char letra = juegoCaracteres.charAt(modulo); 
    return letra; 
}
Source by es.stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #resto
ADD COMMENT
Topic
Name
6+8 =