JAVA CODE
//Ex8_8 program import java.applet.Applet; import java.awt.Graphics; public class Ex8_8 extends Applet { private int size = 6; public void paint (Graphics g) { int row, col; for (col = 1; col <= size; col++) g.drawString (col + "", 20 + 25 * col, 20); for (row = 1; row <= size; row++) g.drawString (row + "", 20, 20 + 25 * row); for (row = 1; row <= size; row++) for (col = 1; col <= size; col++) g.drawString ((row * col) + "", 20 + 25 * col, 20 + 25 * row); } }