Filter lists in Blocky system?

Good day!
I have a question. We currently have a task, and it's the following:

"Write a program: The program should read all the numbers in the input and output only the numbers that have never been read before. The order should remain unchanged."

I have already come this far:

But now I don't know how to prevent numbers that have already been read from being output again.

Does anyone have a solution for this?

1 vote, average: 1.00 out of 1 (1 rating, 1 votes, rated)
You need to be a registered member to rate this.
Loading...
Subscribe
Notify of
1 Answer
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Suiram1
3 months ago

I would make it so that in the loop in the input is processed and the list is added also the rest is made. So it's almost impossible to see if the number entered is present in the list when no it is output and the list is added and otherwise nothing is done. I don't know if there is an extra list operator in this area. You may need to go through the allied list manually.

Greetings, Suiram