#include <stdio.h>
int main() {
int num = 1, qpar = 0, qimp = 0;
while (num != 0) {
if (num % 2 == 0) {
qpar++;
} else {
qimp++;
}
}
printf("Pares -> %d\n", qpar
); printf("Impares -> %d\n", qimp
); }
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKCWludCBudW0gPSAxLCBxcGFyID0gMCwgcWltcCA9IDA7Cgl3aGlsZSAobnVtICE9IDApIHsKCQlwcmludGYoIkludHJvZHV6YVxuIik7CgkJc2NhbmYoIiVkIiwgJm51bSk7CgkJaWYgKG51bSAlIDIgPT0gMCkgewoJCQlxcGFyKys7CgkJfSBlbHNlIHsKCQkJcWltcCsrOwoJCX0KCX0KCXByaW50ZigiUGFyZXMgLT4gJWRcbiIsIHFwYXIpOwoJcHJpbnRmKCJJbXBhcmVzIC0+ICVkXG4iLCBxaW1wKTsKfQ==