APL/APL2.1/TP01/Somme/Somme.java

10 lines
225 B
Java
Raw Normal View History

2022-02-07 17:26:04 +01:00
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);
}
}