Help me in solving GSJ209A problem

My issue

solution

My code

// Update the '_' in the code below
import java.util.Scanner;

class Codechef
{
	public static void main (String[] args)
	{
        Scanner read = new Scanner(System.in);
        i
        String A = read.next();
        String B = read.next();
        String C = read.next();
        String D = read.next();
        String E = read.next();
        // You can use "\n" to add a new line instead of adding multiple print statements
        System.out.print(A + "\n" + B + "\n" + C + "\n" + D + "\n" + E );
	}
}

Learning course: Logic Building in Java
Problem Link: CodeChef: Practical coding for everyone

You should remove the “i” in line 6

Hi @jp_as_priya .You should remove the “i” in line no. 6
As per the code, you had given the input as A=11,B=123,C=34,D=22,E=45.
To print each output value in a separate line, you used “\n”.
So the output will be:
Solution:
11
123
34
22
45

Thank you :blush: