Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float funcao (int indice_termo)
- {
- if (indice_termo == 1)
- {
- return 1;
- }
- int novo_indice_termo = indice_termo--;
- float termo = 1/indice_termo;
- return (termo + funcao(novo_indice_termo));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement