what would happen if I do like this?
Chanuga opened this issue · 1 comments
Chanuga commented
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();
String formatted = String.format("%03d", x);
System.out.println(s1 + " " + formatted);
}
System.out.println("================================");
}
}
atarax665 commented
Please do mention the question you are talking about.