एवरेज ऑफ फर्स्ट एंड ओड नंबर्स
Answers
Answered by
0
Answer:
Average of first n odd naturals numbers
Given a Number n then find the Average of first n odd numbers
1 + 3 + 5 + 7 + 9 +………….+ (2n – 1)
Examples :
Input : 5
Output : 5
(1 + 3 + 5 + 7 + 9)/5 = 5
Answered by
1
Answer: Given a Number n then find the Average of first n odd numbers
1 + 3 + 5 + 7 + 9 +………….+ (2n – 1)
Examples :
Input : 5
Output : 5
(1 + 3 + 5 + 7 + 9)/5 = 5
Input : 10
Output : 10
(1 + 3 + 5 + 7 + 9 + 11 + 13 + 15 + 17 + 19)/10 =10
Hope is helpful.
Similar questions
Social Sciences,
5 months ago
India Languages,
5 months ago
World Languages,
5 months ago
Math,
10 months ago
History,
10 months ago
Business Studies,
1 year ago
English,
1 year ago