1 2 3 4 5 6 7 8 9 10
2 4 6 8 10 12 14 16 18 20
3 6 9 12 15 18 21 24 27 30
for(int i=1; i <= 3; i++)
{
for(int j=1; j<=10; j++)
{
System.out.printf("%4d ", (i * j));
}
System.out.println();
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter