Skip to content

Commit 7435d3f

Browse files
committed
Started exercise 52
1 parent 6c5b4f2 commit 7435d3f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

For loop/52. Sum of GP series.c

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)