- Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathjava-loops-i.java
More file actions
Latest commit
29 lines (23 loc) · 683 Bytes
/
Copy pathjava-loops-i.java
File metadata and controls
29 lines (23 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Java > Introduction > Java Loops I
// Let's talk about loops.
//
// https://www.hackerrank.com/challenges/java-loops-i/problem
// challenge id: 23447
//
importjava.io.*;
importjava.math.*;
importjava.security.*;
importjava.text.*;
importjava.util.*;
importjava.util.concurrent.*;
importjava.util.regex.*;
publicclassSolution {
privatestaticfinalScannerscanner = newScanner(System.in);
publicstaticvoidmain(String[] args) {
intN = scanner.nextInt();
scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");
scanner.close();
for (inti = 1; i <= 10; ++i)
System.out.printf("%d x %d = %d\n", N, i, N * i);
}
}