Professional Documents
Culture Documents
importjava.util.Scanner;
publicclass Class2 {
/**
* @paramargs
*/
publicstaticvoid main(String[] args) {
// TODO Auto-generated method stub
Scanner clavier = newScanner(System.in);
intsomNoteCoef = 0;
doublesomeNote = 0;
intsomCoef = 0;
// s += cof i * note i
//x+=coef i
package pack1;
import java.util.Scanner;
publicclass Class1 {
/**
* @param args
*/
publicstaticvoid main(String[] args) {
// TODO Auto-generated method stub
Scanner clavier = new Scanner(System.in);
intsom = 0;
double moy = 0;
for (int i = 0; i < coef.length; i++) {
System.out.println("entrer le coef N "+(i+1));
coef[i] = clavier.nextInt();
}
int max = coef[0];
int min = coef[0];
som += coef[i];