#include <iostream>
int main()
{
std::cout << "1-st num: ";
int a;
std::cin >> a;
std::cout << "2-nd num: ";
int b;
std::cin >> b;
int nacopitel = 0;
if (a == b) {
std::cout << "equal\n";
}
else {
if (a > b) {
int c;
c = b;
b = a;
a = c;
for (int i = a+1; i < b; i++){
if (i % 2 == 0) {
nacopitel += i;
std::cout << "summ = " << nacopitel;
return 0;
#include <iostream>
int main()
{
std::cout << "1-st num: ";
int a;
std::cin >> a;
std::cout << "2-nd num: ";
int b;
std::cin >> b;
int nacopitel = 0;
if (a == b) {
std::cout << "equal\n";
}
else {
if (a > b) {
int c;
c = b;
b = a;
a = c;
}
for (int i = a+1; i < b; i++){
if (i % 2 == 0) {
nacopitel += i;
}
}
}
std::cout << "summ = " << nacopitel;
return 0;
}