10 lines
265 B
Java
10 lines
265 B
Java
public class Somme {
|
|
public static void main(String[] args) {
|
|
int total = 0;
|
|
for(int i = 0; i < args.length; i++) {
|
|
total = total + Integer.parseInt(args[i]);;
|
|
}
|
|
System.out.print("La somme totale est : " + total);
|
|
}
|
|
}
|