- 1
C programming
8. Write a C program to calculate a series of fractions as shown below: Sn=1/n+1/(n-1)+1/(n-2)+...+1
2 Respostas
+ 1
please try with recursive function.... recursive function should have base case for sure which is n==1 and return 1
+ 1
this is pretty simple if you ask me, just make a for loop that iterates from n to 1 and add 1/i to a sum number