TP 1/2/3
This commit is contained in:
BIN
APL2.1/TP01/Somme/Somme.class
Normal file
BIN
APL2.1/TP01/Somme/Somme.class
Normal file
Binary file not shown.
10
APL2.1/TP01/Somme/Somme.java
Normal file
10
APL2.1/TP01/Somme/Somme.java
Normal file
@@ -0,0 +1,10 @@
|
||||
public class Somme {
|
||||
public static void main(String[] args) {
|
||||
int sum = 0;
|
||||
for (String nb : args) {
|
||||
sum += Integer.parseInt(nb);
|
||||
}
|
||||
|
||||
System.out.println("Somme = " + sum);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user