Bonjour,

J'ai créer le programme suivant qui permet d'Afficher les notes de 10 étudiants et d'en calculer la moyenne. Jusqu'ici tout va bien, par contre j'Aimerais être capable de faire afficher la note maximum et la note minimum des 10 notes qui ont été affichés préalablement et là c'est un gros blanc ... Voici mon programme :
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
public class blablabla {
 
  public static void main(String[] args) {
 
  	int a = 1 + (int)(100*Math.random());
  	int b = 1 + (int)(100*Math.random());
  	int c = 1 + (int)(100*Math.random());
  	int d = 1 + (int)(100*Math.random());
  	int e = 1 + (int)(100*Math.random());
  	int f = 1 + (int)(100*Math.random());
  	int g = 1 + (int)(100*Math.random());
  	int h = 1 + (int)(100*Math.random());
  	int i = 1 + (int)(100*Math.random());
  	int j= 1 + (int)(100*Math.random());
  	int moy = (a+b+c+d+e+f+h+i+j) / 10;
  	int max = //incapable de trouver une solution//
  	int min = //idem//
 
 
 
    System.out.println("Notes1 = " + a + "%");
    System.out.println("Notes1 = " + b + "%");
    System.out.println("Notes1 = " + c + "%");
    System.out.println("Notes1 = " + d + "%");
    System.out.println("Notes1 = " + e + "%");
    System.out.println("Notes1 = " + f + "%");
    System.out.println("Notes1 = " + g + "%");
    System.out.println("Notes1 = " + h + "%");
    System.out.println("Notes1 = " + i + "%");
    System.out.println("Notes1 = " + j + "%");
    System.out.println("La moyenne du groupe = " + moy + "%");
    System.out.println("La note la plus forte = " + max + "%");
    System.out.println("La note la plus faible = " + min + "%");
 
 
  }
 
}
Merci beaucoup, vous m'êtes d'une précieuse aide dans ce début de carrière en programmation

Jonathan