import java.util.*;
import java.lang.*;
import java.io.*;
//You are given an integer A, you need to find and return the sum of all the even numbers
//between 1 and A.
//Even numbers are those numbers that are divisible by 2.
// The main method must be in a class named "Main".
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int A = scn.nextInt();
int result = solve(A);
System.out.println(result);
}
public static int solve(int A) {
int sum = 0;
for (int i = 1 ; i<=A;i++){
if (i%2 ==0) sum = sum+i;
}
return sum;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: