I am confused on how I should write this code for some reason. I understand what the code is asking me, yet I don't know what I am doing. I must be overthinking this. Can anyone help me? Thank you and have a great rest of your day!
package en.codegym.task.pro.task04.task0412;
import java.util.Scanner;
/*
Sum of even numbers
*/
public class Solution
{
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
int start = scanner.nextInt();
int end = scanner.nextInt();
int multiple = scanner.nextInt();
int sum = 0;
for (int a = 1; a >= start && a < end; a++)
{
if (end % multiple == 0)
{
a++;
continue;
}
sum = a + sum;
}
System.out.println(sum);
}
}