#include <stdio.h>
int main()
{
int x = 0, y = 0, cont, pares = 0, impares = 1;
while(x >= y)
{ // trate x como menor que y, como o peio
x = 3;
y = 9;
}
printf("Soma = %i\n", (x
+ y
)); printf("Produto = %i\n", (x
* y
));
for(cont = x; cont <= y; cont ++)
{
if(cont % 2 == 0)
pares += cont;
else
impares *= cont;
}
printf("Pares = %i\n", pares
); printf("Impares = %i\n", impares
); }
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKICAgIGludCB4ID0gMCwgeSA9IDAsIGNvbnQsIHBhcmVzID0gMCwgaW1wYXJlcyA9IDE7CiAgICB3aGlsZSh4ID49IHkpCiAgICB7IC8vIHRyYXRlIHggY29tbyBtZW5vciBxdWUgeSwgY29tbyBvIHBlaW8KICAgICAgICB4ID0gMzsKICAgICAgICB5ID0gOTsKICAgIH0KCiAgICBwcmludGYoIlNvbWEgPSAlaVxuIiwgKHggKyB5KSk7CiAgICBwcmludGYoIlByb2R1dG8gPSAlaVxuIiwgKHggKiB5KSk7CgogICAgZm9yKGNvbnQgPSB4OyBjb250IDw9IHk7IGNvbnQgKyspCiAgICB7CiAgICAgICAgaWYoY29udCAlIDIgPT0gMCkKICAgICAgICAgICAgcGFyZXMgKz0gY29udDsKICAgICAgICBlbHNlCiAgICAgICAgICAgIGltcGFyZXMgKj0gY29udDsKICAgIH0KICAgIHByaW50ZigiUmVzdWx0YWRvOlxuIik7CiAgICBwcmludGYoIlBhcmVzID0gJWlcbiIsIHBhcmVzKTsKICAgIHByaW50ZigiSW1wYXJlcyA9ICVpXG4iLCBpbXBhcmVzKTsKfQ==