1.Set previous value to a chosen starting number.
2. Set current value to next number in array.
3. If the current value is > previous, print
4. If the current value is < previous, print
5. Set previous value to current
6. Go to 2
You haven’t provided any information about what you’ve tried, what issues you’re having, what language you’re using, etc. We can’t read minds, so to get specific help you’ll need to give a bit more information.
thanks. Im sorry for my poorly written question. however if you look closely the number of / and \ are the number of inputs.
Yes, I know, that’s why the algorithm I wrote just converts the values to a printed
ooh ok… thanks a lot. will try to do the program