#include <stdio.h>
int main(void) {
{
int n=2;
int i=0;
int s=0;
printf("Please enter value for N\n"); s=0;
for(i=1;i<=n;i+=1)
{
if(i % 2 == 0)
{
s=s+i;
printf("Current value i=%d S=%d\n",i
,s
); }
}
printf("Final result suma is S=%d",s
);} }
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7Cgl7CgkJaW50IG49MjsKCQlpbnQgaT0wOwoJCWludCBzPTA7CgkJcHJpbnRmKCJQbGVhc2UgZW50ZXIgdmFsdWUgZm9yIE5cbiIpOwoJCXNjYW5mKCIlZCIsJm4pOwoJCXM9MDsKCQlmb3IoaT0xO2k8PW47aSs9MSkKCQl7CgkJCWlmKGkgJSAyID09IDApCgkJCXsKCQkJCXM9cytpOwoJCQkJcHJpbnRmKCJDdXJyZW50IHZhbHVlIGk9JWQgUz0lZFxuIixpLHMpOwoJCQl9CgkJfQoJCXByaW50ZigiRmluYWwgcmVzdWx0IHN1bWEgaXMgUz0lZCIscyk7fQp9Cg==