Guest User

Untitled

a guest
Jul 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Solution {
  4.  
  5. public static void main(String[] args) {
  6. Scanner sc=new Scanner(System.in);
  7. System.out.println("================================");
  8. for(int i=0;i<3;i++){
  9. String s1=sc.next();
  10. int x=sc.nextInt();
  11. //Complete this line
  12. System.out.printf("%-15s%03d%n", s1, x);
  13.  
  14.  
  15. }
  16. System.out.println("================================");
  17.  
  18. }
  19. }
Add Comment
Please, Sign In to add comment