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