You are viewing a single comment's thread. Return to all comments →
import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*;
public class Solution {
public static void main(String[] args) { Scanner sc=new Scanner( System.in); String a=sc.nextLine(); String b=sc.nextLine(); String c=sc.nextLine(); for(int i=1; sc.hasNext(); i++) { System.out.println(i+" " +sc.nextLine()); } }
}
Sir, they said we have to take input. But you have written the code only for checking and printing. But where is the input that we should enter.
Java End-of-file
You are viewing a single comment's thread. Return to all comments →
import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*;
public class Solution {
}
Sir, they said we have to take input. But you have written the code only for checking and printing. But where is the input that we should enter.