Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import java.util.*; 
public class calculmoy {
    public static void charger(int [] t)
    {
    int rep=0;
    int indice=0;
    while (rep!=-1)	
    {
    	rep=Terminal.lireInt();
    	t[indice]=rep;
    	indice++;
    }
    for (indice;t.length-1;indice++)
    {
 
    	t[i]=-1;
    }
    }
    public static void main(String[] args) {
    	int [] tab=new int[20];
    	charger (tab);
    	System.out.println("Hello World!");
    }
}
erreur ligne 13 error not a statement
merci