# How you identify the missing integer, only the logic is required?

+1 vote
36 views

You are given an excel sheet which contains integers from 1 to 50, including both. However, the numbers are in a jumbled form and there is 1 integer missing. You have to write a code to identify the missing integer. Only the logic is required.

posted Jun 30, 2017
Share this puzzle

## 1 Answer

0 votes

(50×51/2) - ( Sum of all the cells ) = missing integer.

answer Jun 30, 2017

Similar Puzzles
0 votes

How many extra orange cubes are required to enclose the blue cube completely?

+5 votes

Atul have 100 pairs of pink socks, 88 pairs of red socks and 77 pairs of orange socks. Everything is mixed in a draw. As there is no light he were not able to identify the color of the socks.

How many of the socks did he want to take to match one pair of socks?

0 votes
0 votes

If you are only allowed to press the 1 and 0 keys on a calculator with any of the add, take, times, divide and equals keys, what is the fewest number of presses needed to make the number 9 on the calculator?