黑马程序员技术交流社区
标题:
基础编程题 乘法口诀
[打印本页]
作者:
王子鹏
时间:
2016-5-26 10:01
标题:
基础编程题 乘法口诀
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);
}
}
复制代码
乘法口诀表
作者:
daniel031699
时间:
2016-5-31 07:24
我来盖个楼......
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2