/*
* 打印输出九九乘法表.要求:只能使用一个while,不能使用for循环、递归。
*/
public class TenDemo
{
public static void main(String[] args)
{
int i = 1;
int j = 1;
while(i<10)
{
if(j < i)
{
System.out.print(j + " * " + i + " = " + j*i + "\t");
j++;
continue;
}
else if(i ==j)
{
System.out.print(j + " * " + i + " = " + j*i + "\t");
j = 1;
i++;
System.out.println();
}
}
}
}