APL/APL2.1/TP01/Somme/Somme.java
2022-02-07 17:26:04 +01:00

10 lines
225 B
Java

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);
}
}