Esta es la tabla de multiplicación 99 que memoricé cuando era niño. Es la versión china, no la versión digital, y se imprimió utilizando un programa Java.
El programa fuente de Java es el siguiente:
paquete com.elephant.multiply99Table; public class Multiply99Table {public static string convert (int digit) {String [] digitwords = {"ten", "one", "dos", "tres", "cuatro", "cinco", "seis", "siete", "ocho", "nine"}; if (dígito <10) return digitWords [dígito]; else if (digit == 10) return digitWords [dígito / 10] + digitwords [0]; de lo contrario devuelve dígitos [dígitos / 10] + digitwords [0] + digitwords [dígito % 10]; } public static void main (string [] args) {for (int i = 1; i <= 9; i ++) {for (int j = i; j <= 9; j ++) {system.out.print (convert (i)+convert (j)+((i * j> = 10)? "": "Get")+Convert (i * j)); System.out.print ((((i * j> 10)? "": "")); } System.out.println (""); // break de línea}}}Los resultados de la ejecución del programa son los siguientes:
One gets one gets one gets two gets three gets three gets four gets five gets five gets six gets seven gets seven gets eight gets nine gets two gets four gets eight gets five gets two gets six gets two gets eight gets five gets two gets six gets eight gets five gets two gets two gets six gets eight gets five gets two gets two gets two gets six gets two gets eight gets five gets two gets two gets two gets two gets two gets two gets two gets two gets two gets two gets two gets two gets three gets three gets three gets three gets three gets three gets three gets three Gets Three Gets Three Gets Three Gets Three Gets Three Gots Three Gots Two Gots Three Gots Three Gots Tres Gots Three Gots Three Gots Tres Gots Three Gots Three Three Gots Three Three Two Gots Tres Gots Three Gots Three Three Three Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots. Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Three Gots Three Three Three Gots Three Gots Three Gots Three Three Three Three Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots Three Gots tres gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three gots three
Lo anterior se trata de este artículo, espero que sea útil para todos aprender la programación de Java.