You are on page 1of 1

import java.util.

Scanner;
public class Etu {
public static void main(String[] args) {
Etu e1 = saisez();
Etu e2 = saisez();
Etu e3 = saisez();
e1.affiche();
e2.affiche();
e3.affiche();
}
public static Etu saisez()
{
Scanner sc = new Scanner(System.in);
System.out.println("inscription de l'etudiant donner ces informa
tions : .... \n");
System.out.print("code : ");
int c= sc.nextInt();
System.out.print("nom : ");
String n= sc.next();
System.out.print("Prenom : ");
String p = sc.next();
System.out.print("date de naissance : ");
String d = sc.next();
System.out.print("optiotns : ");
String o = sc.next();
System.out.print("premier inscription : ");
String ai= sc.next();
System.out.print("anne scolaire : ");
String ac= sc.next();
System.out.print("note algo : ");
double algo= sc.nextDouble();
System.out.print("note system : ");
double system= sc.nextDouble();
System.out.print("note poo : ");
double poo= sc.nextDouble();
return new Etudiant(c, n, p, d, o, ai, ac, algo, system, poo);
}
}

You might also like