We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Scannersc=newScanner(System.in);System.out.println("================================");for(inti=0;i<3;i++){Strings1=sc.next();intx=sc.nextInt();//Complete this lineSystem.out.printf("%-15s",s1);System.out.printf("%03d\n",x);}System.out.println("================================");
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Output Formatting
You are viewing a single comment's thread. Return to all comments →
Here is my solution