Skip to content

Instantly share code, notes, and snippets.

/kkk

Created September 17, 2012 18:31
Show Gist options
  • Save anonymous/3738937 to your computer and use it in GitHub Desktop.
Save anonymous/3738937 to your computer and use it in GitHub Desktop.
kkkk
package multiplaytable;
public class Multiplaytable
{
public static void main(String[] args)
{
for(int a = 0; a < 13; a++)
{
if(a ==0)
{
System.out.print(" ");
}
else
{
System.out.print(" " + a);
}
}
System.out.println(" ");
outer: for (int i = 0; i < 13; i++)
{
if(i == 0)
{
for(int c = 1; c < 13; c++)
{
System.out.println(" " + c);
}
}
else
{
for (int j = 1; j < 14; j++)
{
if (j == 13)
{
System.out.println(" ");
continue outer;
}
System.out.print(" " + (i * j));
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment