Array missing number | Sololearn: Learn to code for FREE!

+1

Array missing number

Can anybody give me ans for an array of 1-100 where one num is missing (say 49)how to find it?

1/29/2019 10:37:52 AM

Abishek M

4 Answers

New Answer

+2

Here is the pseudocode: find sum of array => store in variable total Output 5050-total

+2

Okie. If the array is stored as m, int total = 0; for (int point = 0; point<99; point++){ total+=point; } cout<<(5050-total);

+1

thanks bro ⏩ Prometheus βͺ but if it possible can u provide any ex code for reference

0

thanks bro ✌️