Skip to content

Commit 954f85b

Browse files
committed
Started new exercise
1 parent 1573ed1 commit 954f85b

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
}

0 commit comments

Comments
 (0)