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


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


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


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


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


thanks bro ✌️