Small knowledge, big challenge! This article is participating in the creation activity of “Essential Tips for Programmers”

package csdncom.tt;

/** * Created by Java java.java.java on 2021/10/30. */
public class NineNine {
	public static void main(String[] args) {

		System.out.println();
		// The outer loop is the number of rows in the multiplication table
		for (int j = 1; j < 10; j++) {
			// Write the inner loop, i.e. the number of columns per row of the multiplication table. The number of columns per row is equal to the number of rows per row, for example the first row has one column and the second row has two columns.
			for (int k = 1; k <=j; k++) { 
		// Write the print statement in the inner loop. The changing number is a variable, and the invariant multiplier and equal sign are represented by a string. Use plus sign in the middle to connect. Then, for consistency between Spaces, use the TAB \t instead of Spaces.
				System.out.print(""+k+"X"+j+"="+j*k); } System.out.println(); }}}Copy the code

Print the following: