A program to calculate and print the sum of the series 1;3;5;7;9.....21 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 4

A program to calculate and print the sum of the series 1;3;5;7;9.....21

Please give the answer

24th Aug 2021, 3:59 PM
Mujtaba Ali
2 Answers
+ 3
Mujtaba Ali I have disliked your post because of two main reasons. They're as follows: 1. Your question is vague as the tag 'hallo' doesn't make any sense. Please specify the required language in the tag. 2. You haven't posted any attempt of yours; in fact, it seems like you won't be posting one any sooner as you're directly asking for the answer. Try rectifying the two issues mentioned above and we'll be glad to help you. I hope that this helps. Happy coding!
24th Aug 2021, 4:05 PM
Calvin Thomas
Calvin Thomas - avatar
0
use this formula lol n/2(2a + (n - 1) d) = sum of the series
24th Aug 2021, 4:42 PM
Rellot's screwdriver
Rellot's screwdriver - avatar