diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 444e13b..dba0a20 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -60,7 +60,7 @@ We'd also love PRs. If you're thinking of a large PR, we advise opening up an is ``` git push origin YourBranchName -``` +```sneha **8.** Create a [PR](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request) diff --git a/c_programs/series.c b/c_programs/series.c new file mode 100644 index 0000000..88a44ba --- /dev/null +++ b/c_programs/series.c @@ -0,0 +1,15 @@ +#include +double sum(int n) +{ + double i,s=0.0; + for(i=1;i<=n;i++) + { + s=s+1/i; + } + return s; +} +void main() +{ + int n=10; + printf("Sum is : %f",sum(n)); +} \ No newline at end of file