Find the missing number 8-23/4=?/4
Answers
Answered by
6
So the sum of all n elements, i.e sum of numbers from 1 to n can be calculated using the formula n*(n+1)/2. Now find the sum of all the elements in the array and subtract it from the sum of first n natural numbers, it will be the value of the missing element. Algorithm: ... Print the missing number as sumtotal – sum.
Attachments:
Answered by
23
Answer:
hope it helps you
Refer to attachment
Attachments:
Similar questions