#include <stdio.h>
int get_sum(int n,int x){
float sum=0;
for(int i=1;i<=n;i++){
if(i%2==0){
sum=sum+(i^(x/i));
}
}
return sum;
}
int main()
{
float sum=get_sum(8,1);
printf("%f",sum);
return 0;
}
Comments
Leave a comment