admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Write a program to find the missing number in a given integer array.

Hardik Patel
12 Posts

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
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin