C++

Objectives :

 

Step: 1 Create a source file.

Step: 2 Edit and save Source file

Step: 3 Runtime Views: FYI, when an element in the first series was in ascending sequence, the element in the first was recognized; if not in an order (bottom illustration), would be dropped out.

Step: