Write a program to input 10 numbers and find the average of all odd numbers.
Answers
Answered by
0
Answer:
Input : n = 9 Output : 5 Explanation (1 + 3 + 5 + 7 + 9)/5 = 25/5 = 5 Input : n = 221 Output : 111 ... Method 1 We can calculate average by adding each odd numbers till ... C++; Java; Python3; C#; PHP ... Program to find average of odd numbers ... Sum of the series 1, 2, 4, 3, 5, 7, 9, 6, 8, 10, 11, 13.. till N-th term.
Explanation:
Similar questions