Это 99 таблица умножения, которую я запомнил, когда был ребенком. Это китайская версия, а не цифровая версия, и она была распечатана с использованием программы Java.
Программа источника Java выглядит следующим образом:
пакет com.elephant.multiply99table; public class multiply99table {public static String convert (int digit) {string [] digitwords = {«десять», «один», «два», «три», «четыре», «пять», «шесть», «семь», «восемь», «девять»}; if (Digit <10) return Digitwords [Digit]; else if (digit == 10) return Digitwords [Digit / 10] + Digitwords [0]; else return Digitwords [Digit / 10] + Digitwords [0] + DigitWords [Digit % 10]; } public static void main (string [] args) {for (int i = 1; i <= 9; i ++) {for (int j = i; j <= 9; j ++) {System.out.print (преобразовать (i)+конвертировать (j)+((i * j> = 10)? System.out.print (((i * J> 10)? "": "")); } System.out.println ("" "); // Line Break}}}Результаты прогона программы следующие:
Один получает один Get Gets Gets Two Gets Three Gets Three Gets Four Five Gets Five Gets Six Gets Seven Gets Seven Gets Dine Get Gets Two Gets Four Get Five Get Gets Two Gets Two Getse восемь Get Five Gets Two Get Six Gets Five Get Get Two Getse шесть GETESTER GET FIVE GET Двое Гем. three gets three gets three gets three gets three gets three gots two gots three gots three gots two gots three gots three gots two gots three gots three gots three gots two 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 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 Hots Three Hots Three Hots Three Three Three Three Three Thres Three Thers Three Three Three Three Three Three Thres Three Three Thres Three Thres Three Hots Three Thers Three Hots Three Hots Three Hots Three Hots Three Hots Three Three Hots Three Hott
Выше приведено все об этой статье, я надеюсь, что для всех будет полезно изучать программирование Java.