C++ Program to remove duplicate numbers in an array

codeboks
Jul 31, 2021

Object: Write a program that takes numbers as input and returns the result with all the duplicate numbers removed For example, if the input Array is {0, 1, 2, 2, 3, 4, 5, 6, 8, 8, 9, 1, 2}, the output will be {0,1, 2, 3, 4, 5, 6, 8, 9}.

Code:

void main()
{
int i, j, k, n, num[100];
cout<<“How many Numbers Your Enter?\n”; cin>>n;
cout << “Enter Any “<> num[i];
}….Continue code….

--

--