+ 1
Fine the error and write the correct one?
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner ob= new Scanner (System.in); int a[] = new int[10]; for(int i=0;i<a.lenght;i++) a[i]=ob.nextInt(); for(int i=0;i<a.lenght;i++) System.out.print(a[i]+" "); } }
1 Réponse
+ 2
length is written wrong inside the for parenthesis