From e63a03a6f956690cffb595040ee262537b8efa6d Mon Sep 17 00:00:00 2001 From: snehab03 Date: Sat, 8 Oct 2022 02:57:54 +0530 Subject: [PATCH 1/2] Add sneha to contributors list --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From 09927dfad5d747df4677b2b2ab1941907227adec Mon Sep 17 00:00:00 2001 From: snehab03 Date: Sat, 8 Oct 2022 03:46:58 +0530 Subject: [PATCH 2/2] first c program --- c_programs/series.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 c_programs/series.c 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