#include <stdio.h>
int main (void){
int N, i;
float res = 0;
puts("Digite um valor: ");
for( i = 1 ; i <= N; i++){
res += (float)i/((N - i) + 1);
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbiAodm9pZCl7CglpbnQgTiwgaTsKCWZsb2F0IHJlcyA9IDA7CglwdXRzKCJEaWdpdGUgdW0gdmFsb3I6ICIpOwoJc2NhbmYoIiVkIiwgJk4pOwoKCWZvciggaSA9IDEgOyBpIDw9IE47IGkrKyl7CgkJcmVzICs9IChmbG9hdClpLygoTiAtIGkpICsgMSk7Cgl9CglwcmludGYoIiUuMmZcbiIsIHJlcyk7CglyZXR1cm4gMDsKfQo=