#include<stdio.h>
#include<conio.h>
main()
{
clrscr();
float i,sum=0,n;
printf(" enter any integer");
scanf(" %f",&n);
for(i=1;i<=n;i++)
{
sum=sum+(1/i);
}
printf("sum of series %f",sum);
getch();
return 0;
}
Design By Manish and Ranjan
0 comments:
Post a Comment