File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2022 ficnhren
2
+ /*
3
+ Write a c program to find out the sum of an A.P. series
4
+ Test Data :
5
+ Input the starting number of the A.P. series: 1
6
+ Input the number of items for the A.P. series: 10
7
+ Input the common difference of A.P. series: 4
8
+ Expected Output :
9
+ The Sum of the A.P. series are :
10
+ 1 + 5 + 9 + 13 + 17 + 21 + 25 + 29 + 33 + 37 = 190
11
+
12
+ 1. Take input
13
+ 1.5 Invalid input
14
+ 2. Write a function to find elements
15
+ 3. Output sum
16
+ 4. Test
17
+ 5. Cpplint test
18
+ 6. Add and push
19
+ */
20
+
21
+ #include <stdio.h>
22
+
23
+ int input_start ();
24
+ int input_end ();
25
+ void print_invalid_input ();
26
+
27
+ int main () {
28
+ int start = input_start ();
29
+ int end = input_end ();
30
+ printf ()
31
+ return 0 ;
32
+ }
33
+
34
+ void print_invalid_input () {
35
+ printf ("n/a" );
36
+ }
37
+
38
+ int input_start () {
39
+
40
+ }
41
+
42
+ int input_end () {
43
+
44
+ }
You can’t perform that action at this time.
0 commit comments