Java program to find the missing number in array

Write a java program to find the missing number in array.

 

Output is –¬†Missing number is 3

 

Second approach –

 

Output is –

missing no is 13

Top