I should not post classroom questions here

Hi
Please help me.
I have file which contains

60
59
52
45
43
40
70
69
62

which bash script can give me "pass on every line and every time remembering previous number give me the first mutch where next number greater than previous, in this example 70"
Please help thank you.

Rep:

                                                                                                 Hi 

Please help me.
I have file which contains
60
59
52
45
43
40
70
69
62
which bash script can give me "pass on every line and every time remembering previous number give me the first mutch where next number greater than previous, in this example 70"
Please help thank you.