10 lines
225 B
Java
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);
|
||
|
}
|
||
|
}
|