Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
20 lines (18 loc) · 671 Bytes

File metadata and controls

executable file
·
20 lines (18 loc) · 671 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//**************************************************************************
// PP406 Produces a multiplication table, showing the results of multiplying
// the integers 1 through 12 by themselves.
//**************************************************************************
import java.text.NumberFormat;
public class PP406
{
public static void main(String[] args)
{
NumberFormat fmt = NumberFormat.getInstance();
fmt.setMinimumIntegerDigits(3);
for (int i = 1; i <= 12; i++)
{
System.out.println(fmt.format(i) + " x " + fmt.format(i)
+ " = " + fmt.format(i * i));
}
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.