A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© 王子鹏 中级黑马   /  2016-5-26 10:01  /  690 人查看  /  1 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

  1. class demo
  2. {
  3.           private int i;
  4.           private int j;

  5.         void temp(int i,int j)
  6.           {
  7.                         this.i=i;
  8.                         this.j=j;
  9.                         for (this.i=i;i<=this.j;i++)
  10.                         {
  11.                                 //int s = i*j;
  12.                                 System.out.print(i+"*"+j+"="+i*j+"     \t"  );
  13.                         }
  14.                         System.out.println();
  15.                         if(j!=100)
  16.                         {
  17.                                 this.j=j+1;
  18.                         temp(1,this.j);
  19.                         }
  20.                 }
  21. }

  22.        
  23. public class 乘法口诀 {

  24.         public static void main(String[] args) {
  25.                 demo o =new demo();
  26.                 o.temp(1, 1);
  27.        
  28. }
  29. }
复制代码

乘法口诀表  

1 个回复

倒序浏览
我来盖个楼......
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马