write a program to input n number of numbers and delete all duplicates
Example:
Input:1,3,5,6,7, 2,1,3,4,6
Output:1,3,5,6,2,4
Answers
Answered by
1
Answer:
I use python
Explanation:
vector = []
n=int(input("Number of Data: "))
for i in range(0,n):
m=int(input("Data Position {}: ".format(i)))
vector.append(m)
list(set(vector)) # Delete duplicates
Attachments:
Similar questions