/* 5단 제외 for문, while문 구구단 */
public class ForWhileTest {
public static void main(String[] args) {
int i, j;
for(i=2; i<10; i++)
for(j=1; j<10; j++)
{
if(i!=5)
System.out.println(i+" * "+j+" = "+i*j);
}
System.out.println();
i=1;
while(i<9)
{
i++;
j=1;
while(j<10)
{
if(i!=5)
System.out.println(i+" * "+j+" = "+i*j);
j++;
}
}
}
}