Write A C Program To Find The Sum Of 1/1 1/2 1/3 .....1/n?

2

2 Answers

Asha gowda Profile
Asha gowda answered
C code
It is very easy,just seperate the digits from orginal number and then add it  with one another.. Code as follows..

#include
void main()
{
int n,digit,sum=0;
printf("enter the number");
scanf("%d",&n);
while(I

Answer Question

Anonymous