- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHackerrankJava0005.java
More file actions
Latest commit
22 lines (15 loc) · 569 Bytes
/
Copy pathHackerrankJava0005.java
File metadata and controls
22 lines (15 loc) · 569 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
importjava.io.BufferedReader;
importjava.io.IOException;
importjava.io.InputStreamReader;
publicclassHackerrankJava0005 {
publicstaticvoidmain(String[] args) throwsIOException {
// Java Loops I
// https://www.hackerrank.com/challenges/java-loops-i/problem?isFullScreen=true
BufferedReaderbufferedReader = newBufferedReader(newInputStreamReader(System.in));
intN = Integer.parseInt(bufferedReader.readLine().trim());
for (inti = 1; i < 11; i++) {
System.out.println(N + " x " + i + " = " + (N * i));
}
bufferedReader.close();
}
}