forked from alexprut/HackerRank
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolution.java
More file actions
24 lines (21 loc) · 767 Bytes
/
Solution.java
File metadata and controls
24 lines (21 loc) · 767 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
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("================================");
for(int i=0;i<3;i++){
String s1=sc.next();
int x=sc.nextInt();
System.out.print(s1);
for (int j = 15 - s1.length(); j > 0; j--) {
System.out.print(" ");
}
String s2 = "" + x;
for (int j = 3 - s2.length(); j > 0; j--) {
System.out.print("0");
}
System.out.println(s2);
}
System.out.println("================================");
}
}