Write a program to find the missing number in a given integer array.
Input :
Enter the n value: 5
Enter (n-1) numbers: 1 2 3 5
Output :
Missing number is: 4
Note : You can also create an array and use that instead of accepting dynamically.
Published By : Hardik Patel