- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolution.java
More file actions
Latest commit
26 lines (19 loc) · 643 Bytes
/
Copy pathsolution.java
File metadata and controls
26 lines (19 loc) · 643 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
// github.com/Utkarsh299-tech
importjava.io.*;
importjava.math.*;
importjava.security.*;
importjava.text.*;
importjava.util.*;
importjava.util.concurrent.*;
importjava.util.regex.*;
publicclassSolution {
publicstaticvoidmain(String[] args) throwsIOException {
BufferedReaderbufferedReader = newBufferedReader(newInputStreamReader(System.in));
intN = Integer.parseInt(bufferedReader.readLine().trim());
for(inti=1; i<= 10; i++) {
intresult = N * i;
System.out.printf("%d x %d = %d%n", N, i, result);
}
bufferedReader.close();
}
}