APL/APL2.1/TP1/Somme.java

10 lines
265 B
Java
Raw Normal View History

2022-02-07 10:53:37 +01:00
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);
}
}