DEV/DEV2.1/TP1/Somme.java

14 lines
221 B
Java
Raw Normal View History

2023-02-10 11:52:05 +01:00
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);
}
}