10 lines
194 B
Java
10 lines
194 B
Java
|
public class Somme{
|
||
|
public static void main(String[] args){
|
||
|
int somme = 0;
|
||
|
for(String i : args){
|
||
|
int nombre = Integer.parseInt(i);
|
||
|
somme+=nombre;
|
||
|
}
|
||
|
System.out.println(somme);
|
||
|
}
|
||
|
}
|