We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c5b4f2 commit 7435d3fCopy full SHA for 7435d3f
For loop/52. Sum of GP series.c
@@ -0,0 +1,26 @@
1
+// Copyright 2022 finchren
2
+/*
3
+Write a program in c to find the Sum of GP series
4
+Test Data :
5
+Input the first number of the G.P. series: 3
6
+Input the number or terms in the G.P. series: 5
7
+Input the common ratio of G.P. series: 2
8
+Expected Output :
9
+The numbers for the G.P. series:
10
+3.000000 6.000000 12.000000 24.000000 48.000000
11
+The Sum of the G.P. series : 93.000000
12
+
13
+1. Write tests (run tests function + body of a test)
14
+2. Input
15
+3. Invalid input
16
+4. Finction to print out and find the sum
17
+5. Check the tests
18
+6. Cppcheck
19
+7. Add and push
20
+*/
21
22
+#include <stdio.h>
23
24
+int main() {
25
+ return 0;
26
+}
0 commit comments