package ru.job4j.loop;
/**
 * Class Counter.
 *
 * @author Alexey Leishin (lepishin.ao@yandex.ru)
 * @version 1
 * @since 07.05.2017
 */
public class Counter {
	/**
	 * Method add.
	 * @param start - int.
	 * @param finish - int.
	 * @return result - int.
	 */
	public int add(int start, int finish) {
		int result = 0;
		for ( ; start <= finish; start++) {
			int count = start % 2;
			int auxiliaryCount = count == 0 ? start : 0;
			result = result + auxiliaryCount;
		}
		return result;
	}
}
@@ -359,114 +359,54 @@
 %09%09%09i
-nt count = start %25 2;%0A%09%09%09int auxiliaryCount = count == 0 ? start : 0;
+f (start %25 2 == 0) %7B
 %0A%09%09%09
+%09
 result 
++
 = 
-result + auxiliaryCount;
+start;%0A%09%09%09%7D
 %0A%09%09%7D

Task 192+