0
Someone help me out please with the error.
import java.util.Scanner; public class Example { public static void main (String args[]) { Scanner input = new Scanner (System.in); { int n1 = input.nextInt(); int n2 = input.nextInt(); int n3 = input.nextInt(); { int j[] = {n1,n2,n3}; for (int i=0;i<j.length;i++) { System.out.println(j[i]); } } } } }
1 Answer
+ 7
Ankush Raj
Give input in one go like this way
1
2
3
https://code.sololearn.com/cRzgoYZ4Jzs1/?ref=app