#include <stdio.h>
int main() {
int n, i;
long long product = 1;
printf("Enter the value of n: \n ");
for(i = 2; i <= n; i += 2) {
product *= i;
}
printf("Product of even numbers from 1 to %d = %lld\n", n
, product
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBuLCBpOwogICAgbG9uZyBsb25nIHByb2R1Y3QgPSAxOwoKICAgIHByaW50ZigiRW50ZXIgdGhlIHZhbHVlIG9mIG46IFxuICIpOwogICAgc2NhbmYoIiVkIiwgJm4pOwoKICAgIGZvcihpID0gMjsgaSA8PSBuOyBpICs9IDIpIHsKICAgICAgICBwcm9kdWN0ICo9IGk7CiAgICB9CgogICAgcHJpbnRmKCJQcm9kdWN0IG9mIGV2ZW4gbnVtYmVycyBmcm9tIDEgdG8gJWQgPSAlbGxkXG4iLCBuLCBwcm9kdWN0KTsKICAgIHJldHVybiAwOwp9Cg==