#include <stdio.h>
int main() {
int x = 0, y = 0, somaPares = 0, multiImpares = 0;
scanf("%d", &x);
scanf("%d", &y);
somaPares = x + y;
multiImpares = x * y;
printf("%d\n", somaPares);
printf("%d\n", multiImpares);
while (x < y) {
x++;
if (x % 2 == 0) {
somaPares = somaPares + x;
} else {
multiImpares = multiImpares * x;
}
}
printf("A soma de X e Y mais os números pares entre eles é: %d\n", somaPares);
printf("A multiplicação de X e Y mais os números ímpares entre eles é: %d", multiImpares);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCB4ID0gMCwgeSA9IDAsIHNvbWFQYXJlcyA9IDAsIG11bHRpSW1wYXJlcyA9IDA7CgogICAgc2NhbmYoIiVkIiwgJngpOwogICAgc2NhbmYoIiVkIiwgJnkpOwoKICAgIHNvbWFQYXJlcyA9IHggKyB5OwogICAgbXVsdGlJbXBhcmVzID0geCAqIHk7CiAgICBwcmludGYoIiVkXG4iLCBzb21hUGFyZXMpOwogICAgcHJpbnRmKCIlZFxuIiwgbXVsdGlJbXBhcmVzKTsKCiAgICB3aGlsZSAoeCA8IHkpIHsKICAgICAgICB4Kys7CiAgICAgICAgaWYgKHggJSAyID09IDApIHsKICAgICAgICAgICAgc29tYVBhcmVzID0gc29tYVBhcmVzICsgeDsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBtdWx0aUltcGFyZXMgPSBtdWx0aUltcGFyZXMgKiB4OwogICAgICAgIH0KICAgIH0KCiAgICBwcmludGYoIkEgc29tYSBkZSBYIGUgWSBtYWlzIG9zIG7Dum1lcm9zIHBhcmVzIGVudHJlIGVsZXMgw6k6ICVkXG4iLCBzb21hUGFyZXMpOwogICAgcHJpbnRmKCJBIG11bHRpcGxpY2HDp8OjbyBkZSBYIGUgWSBtYWlzIG9zIG7Dum1lcm9zIMOtbXBhcmVzIGVudHJlIGVsZXMgw6k6ICVkIiwgbXVsdGlJbXBhcmVzKTsKICAgIHJldHVybiAwOwp9