Dies ist die 99 Multiplikationstabelle, die ich als Kind auswendig gelernt habe. Es ist die chinesische Version, nicht die digitale Version, und sie wurde mit einem Java -Programm ausgedruckt.
Das Java -Quellprogramm lautet wie folgt:
Paket com.elephant.multiply99Table; öffentliche Klasse multiply99Table {public static String convert (int digit) {String [] digitwords = {"zehn", "eins", "zwei", "drei", "vier", "fünf", "sechs", "sieben", "acht", "neun"}; if (Ziffer <10) return digitwords [digit]; else if (digit == 10) return digitwords [digit / 10] + digitwords [0]; sonst return digitwords [digit / 10] + digitwords [0] + digitwords [digit % 10]; } public static void main (String [] args) {für (int i = 1; i <= 9; i ++) {für (int j = i; j <= 9; j ++) {System.out.print (convert (i)+convert (j)+((i * j> = 10)? " System.out.print (((i * j> 10)? "": ""); } System.out.println (""); // Line Break}}}Die Programme für Programmläufe sind wie folgt:
Einer bekommt ein. Einer bekommt ein Get zwei bekommt drei GET 3 GET FÜR FÜNDUNG FÜNDUNG FÜNDUNG FÜNDEN SIE SEI SEI SEIL SEILE SEILEN SIE SEIGEN SIE SEIGEN Acht GETEN NEI GETEN SIE) FÜNDIGEN SIE FÜNDEN SIE FÜNDEN SIE FÜNDEN SIE FÜNDEN SIE SEIGE SEIGE SEIGE SEI. 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 gots drei gots drei gots drei gots drei gots drei gots drei gots drei gots drei gots drei gots drei gots drei gots drei gots drei gots drei gots drei sterh
Das obige dreht sich alles um diesen Artikel. Ich hoffe, dass es für alle hilfreich sein wird, Java -Programme zu lernen.