Professional Documents
Culture Documents
Table
Table
Scanner;
num=sc.nextInt();
do
{
output(num);
System.out.print("Do you want to try again with another number : ");
check=sc.nextInt();
if(check==0)
{
System.exit(0);
}
else
{
System.out.print("Enter table number : ");
num=sc.nextInt();
}
}
while(check!=0);