- class demo
- {
- private int i;
- private int j;
- void temp(int i,int j)
- {
- this.i=i;
- this.j=j;
- for (this.i=i;i<=this.j;i++)
- {
- //int s = i*j;
- System.out.print(i+"*"+j+"="+i*j+" \t" );
- }
- System.out.println();
- if(j!=100)
- {
- this.j=j+1;
- temp(1,this.j);
- }
- }
- }
-
- public class 乘法口诀 {
- public static void main(String[] args) {
- demo o =new demo();
- o.temp(1, 1);
-
- }
- }
复制代码
乘法口诀表 |
|