package ru.job4j.loop;

/**.
 * Class Counter solving part 4 task 4.1
 * @author Mikhail Vlasov
 * @since 4.8.2017
 * @version 1
 */
public class Counter {

	/**.
	 * Counting the sum of even numbers between two
	 * @param start first number
	 * @param finish last number
	 * @return int summ
	 */
	public int add(int start, int finish) {
		int sumOfEvenNumbers = 0;
		for (; start <= finish; start++) {
			if (start % 2 != 0) {
				continue;
			}
			sumOfEvenNumbers = sumOfEvenNumbers + start;
		}
		return sumOfEvenNumbers;
	}
}
@@ -418,17 +418,17 @@
 %25 2 
-!
+=
 = 0) %7B%0A%09
 %09%09%09c
@@ -427,26 +427,8 @@
  %7B%0A%09
-%09%09%09continue;%0A%09%09%09%7D%0A
 %09%09%09s
@@ -447,35 +447,22 @@
 ers 
++
 = s
-umOfEvenNumbers + s
 tart;
+%0A%09%09%09%7D
 %0A%09%09%7D

task 192