Ajout des TP
This commit is contained in:
BIN
BUT1/DEV2.2/TP1-Introduction/EXO 3/exo3.class
Normal file
BIN
BUT1/DEV2.2/TP1-Introduction/EXO 3/exo3.class
Normal file
Binary file not shown.
17
BUT1/DEV2.2/TP1-Introduction/EXO 3/exo3.java
Normal file
17
BUT1/DEV2.2/TP1-Introduction/EXO 3/exo3.java
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* DOC
|
||||
*/
|
||||
|
||||
public class exo3 {
|
||||
/**
|
||||
* DOC
|
||||
*/
|
||||
public static void main(String[] args){
|
||||
int resultat = 0;
|
||||
for(String i : args){
|
||||
int nombreTemporaire = Integer.parseInt(i);
|
||||
resultat += nombreTemporaire;
|
||||
}
|
||||
System.out.println("La somme est : " + resultat);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user