the average of first even numbers is
Answers
Answered by
2
Answer:
avg will be 0 only. Because 0/1=0
Answered by
3
Answer:
Javascript. Method 2 :- The idea is the sum of first n even number is n(n+1), for find the Average of first n even numbers divide by n, hence formula is n(n + 1) / n = ( n + 1). i.e. Average of first n even numbers is n+1. it take 0(1) time.
I hope it is helpful
Attachments:
Similar questions