Rodrick
S=0+2+4+6+8...n
import java.io.*;
java.util.* importieren;
public class somme{
public static void main(String [ ] args) {
Scanner reed=new Scanner (System.in);
int n,s,I;
System.out.println("Entrer la valeur n");
n=reed.nextInt();
s = 0;
für (I=0;I<=n;I+=2){
s=s+I;
}
System.out.println("la somme est : "+s);
}}